CVE-2023-54062

ext4: fix invalid free tracking in ext4_xattr_move_to_block()

7.8 high EPSS 0.17%

Published 24 Dec 2025 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2023-54062

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-2023-54062 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:

ext4: fix invalid free tracking in ext4_xattr_move_to_block()

In ext4_xattr_move_to_block(), the value of the extended attribute which we need to move to an external block may be allocated by kvmalloc() if the value is stored in an external inode. So at the end of the function the code tried to check if this was the case by testing entry->e_value_inum.

However, at this point, the pointer to the xattr entry is no longer valid, because it was removed from the original location where it had been stored. So we could end up calling kvfree() on a pointer which was not allocated by kvmalloc(); or we could also potentially leak memory by not freeing the buffer when it should be freed. Fix this by storing whether it should be freed in a separate variable.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

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

The assessment of CISA (SSVC, 15 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from c7851208abffe5ae4deb01cf48763911dc14fc67, before 76887be2a96193cd11be818551b8934ecdb3123f
affected from f5cdc6a7339f250d44d4d469ed7a474ac0d6c7a7, before f30f3391d089dc91aef91d08f4b04a6c0df2b067
affected from 3b28c799a1334adb5a19f42f03abe0d8cbb05938, before ba04d6af5ac440a6d5a2d35dc1d8e2cb0323550a
affected from d738789ae9ec47d3458a008788f3cdc862ebf0cb, before 1a8822343e67432b658145d2760a524c884da9d4
affected from a6744e14ce7045ab1a728bde9595f62fbd39f1d2, before 8beaa3cb293a8f7bacf711cf52201d59859dbc40
affected from 8b6d06b3be7648b3b0f428558293ddf6e2cb94bf, before c5fa4eedddd1c8342ce533cb401c0e693e55b4e3
affected from d2efaf8c870c7067b8d1779773134f3481cd8f68, before a18670395e5f28acddeca037c5e4bd2ea961b70a
affected from 1e9d62d252812575ded7c620d8fc67c32ff06c16, before b2fab1807d26acd1c6115b95b5eddd697d84751b
affected from 1e9d62d252812575ded7c620d8fc67c32ff06c16, before b87c7cdf2bed4928b899e1ce91ef0d147017ba45
affected from 4.14.308, before 4.14.315
affected from 4.19.276, before 4.19.283
affected from 5.4.235, before 5.4.243
affected from 5.10.173, before 5.10.180
affected from 5.15.99, before 5.15.112
affected from 6.1.16, before 6.1.29
affected from 6.2.3, before 6.2.16
Other versions: unaffected
Linux
affected 6.3
unaffected before 6.3
unaffected from 4.14.315 up to and including 4.14.*
unaffected from 4.19.283 up to and including 4.19.*
unaffected from 5.4.243 up to and including 5.4.*
unaffected from 5.10.180 up to and including 5.10.*
unaffected from 5.15.112 up to and including 5.15.*
unaffected from 6.1.29 up to and including 6.1.*
unaffected from 6.2.16 up to and including 6.2.*
unaffected from 6.3.3 up to and including 6.3.*
unaffected 6.4 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-2023-54062 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54062

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-2023-54062
trivy image --scanners vuln IMAGE | grep CVE-2023-54062

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-2023-54062 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.