cve.bz

CVE-2023-54062 linux linux

7.8 highEPSS 0.2%Fix available

High (7.8) in linux linux. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 5th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-10-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • Linux Linux: fixed in 4.14.315
  • Linux Linux: fixed in 4.19.283
  • Linux Linux: fixed in 5.4.243
  • Linux Linux: fixed in 5.10.180
  • Linux Linux: fixed in 5.15.112
  • Linux Linux: fixed in 6.1.29
  • Linux Linux: fixed in 6.2.16
  • Linux Linux: fixed in 6.3.3
  • Debian, Ubuntu, Red Hat, Alpaquita: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2023-54062 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-54062?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-54062?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-54062 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2023-54062

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2023-54062](https://cve.bz/cve/badge/CVE-2023-54062.svg)](https://cve.bz/cve/CVE-2023-54062)

HTML:

<a href="https://cve.bz/cve/CVE-2023-54062"><img src="https://cve.bz/cve/badge/CVE-2023-54062.svg" alt="CVE-2023-54062"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linuxfrom 4.14.308 before 4.14.315
Linuxfrom 4.19.276 before 4.19.283
Linuxfrom 5.4.235 before 5.4.243
Linuxfrom 5.10.173 before 5.10.180
Linuxfrom 5.15.99 before 5.15.112
Linuxfrom 6.1.16 before 6.1.29
Linuxfrom 6.2.3 before 6.2.16
Linux6.3 and later

Fixed in

ProductRelease lineFixed in
Linux4.144.14.315
Linux4.194.19.283
Linux5.45.4.243
Linux5.105.10.180
Linux5.155.15.112
Linux6.16.1.29
Linux6.26.2.16
Linux6.36.3.3
Linuxlater releases6.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12linux6.1.37-1DEBIAN-CVE-2023-54062
Debian13, 14linux6.3.7-1DEBIAN-CVE-2023-54062
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2023-54062
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2023-54062
Ubuntu20.04:LTSlinux5.4.0-162.179UBUNTU-CVE-2023-54062
Ubuntu20.04:LTSlinux-aws5.4.0-1109.118UBUNTU-CVE-2023-54062
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1044.49~20.04.1UBUNTU-CVE-2023-54062
Ubuntu20.04:LTSlinux-azure5.4.0-1115.122UBUNTU-CVE-2023-54062
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1046.53~20.04.1UBUNTU-CVE-2023-54062
Ubuntu20.04:LTSlinux-bluefield5.4.0-1070.76UBUNTU-CVE-2023-54062
Ubuntu20.04:LTSlinux-gcp5.4.0-1112.121UBUNTU-CVE-2023-54062
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1041.49~20.04.1UBUNTU-CVE-2023-54062
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2023-54062
Ubuntu20.04:LTSlinux-hwe-5.15, linux-lowlatency-hwe-5.155.15.0-83.92~20.04.1UBUNTU-CVE-2023-54062
41 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 26 more0:5.14.0-427.13.1.el9_4RHSA-2024:2394
Red Hatenterprise_linux:9::appstream, enterprise_linux:9::crb, enterprise_linux:9::nfv and 1 morebpftool-debuginfo0:7.3.0-427.13.1.el9_4RHSA-2024:2394
Red Hatenterprise_linux:9::baseosbpftool, bpftool-debuginfo0:7.3.0-427.13.1.el9_4RHSA-2024:2394
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 43 more0:5.14.0-427.13.1.el9_4RHSA-2024:2394
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 14 more0:5.14.0-427.13.1.el9_4RHSA-2024:2394
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-427.13.1.el9_4RHSA-2024:2394
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-427.13.1.el9_4RHSA-2024:2394
Alpaquitastreamlinux-lts6.6.58-r0BELL-CVE-2023-54062

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This flaw affects ext4 filesystems using extended attributes stored in external inodes. The invalid free tracking occurs when moving large xattr values to separate blocks. While this can cause memory corruption or leaks, exploiting it requires specific filesystem operations on ext4 with large extended attributes, limiting practical attack scenarios.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9kernel-0:5.14.0-427.13.1.el9_4Fixed 2024-04-30RHSA-2024:2394
Red Hat Enterprise Linux 10kernelNot affected
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 7kernelFix deferred
Red Hat Enterprise Linux 7kernel-rtFix deferred
Red Hat Enterprise Linux 8kernelFix deferred
Red Hat Enterprise Linux 8kernel-rtFix deferred
Red Hat Enterprise Linux 9kernel-rtFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-54062.

References

Check your stackJSON