CVE-2022-48747

block: Fix wrong offset in bio_truncate()

7.5 high EPSS 0.92%

Published 20 Jun 2024 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2022-48747

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-48747 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

block: Fix wrong offset in bio_truncate()

bio_truncate() clears the buffer outside of last block of bdev, however current bio_truncate() is using the wrong offset of page. So it can return the uninitialized data.

This happened when both of truncated/corrupted FS and userspace (via bdev) are trying to read the last of bdev.

Severity (CVSS)

7.5 high CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.92%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 61.2% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 26 Jun 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
yes: an attacker can automate the attack across many targets
Technical impact
partial: limited control or limited data

Weakness

  • CWE-908 Use of Uninitialized Resource

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 943cd69efac437d82a7aea0659fccbcc071730de, before 6cbf4c731d7812518cd857c2cfc3da9fd120f6ae
affected from 85a8ce62c2eabe28b9d76ca4eecf37922402df93, before b63e120189fd92aff00096d11e2fc5253f60248b
affected from 85a8ce62c2eabe28b9d76ca4eecf37922402df93, before 4633a79ff8bc82770486a063a08b55e5162521d8
affected from 85a8ce62c2eabe28b9d76ca4eecf37922402df93, before 941d5180c430ce5b0f7a3622ef9b76077bfa3d82
affected from 85a8ce62c2eabe28b9d76ca4eecf37922402df93, before 3ee859e384d453d6ac68bfd5971f630d9fa46ad3
affected from 5.4.9, before 5.4.176
Other versions: unaffected
Linux
affected 5.5
unaffected before 5.5
unaffected from 5.4.176 up to and including 5.4.*
unaffected from 5.10.96 up to and including 5.10.*
unaffected from 5.15.19 up to and including 5.15.*
unaffected from 5.16.5 up to and including 5.16.*
unaffected 5.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-48747 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-48747

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-48747
trivy image --scanners vuln IMAGE | grep CVE-2022-48747

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-48747 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.