cve.bz

CVE-2024-38599 linux linux kernel: Out-of-bounds Read

7.1 highEPSS 0.2%Fix available

High (7.1) in linux linux kernel. 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: jffs2: prevent xattr node from overflowing the eraseblock Add a check to make sure that the requested xattr node size is no larger than the eraseblock minus the cleanmarker. Unlike the usual inode nodes, the xattr nodes aren't split into parts and spread across multiple eraseblocks, which means that a xattr node must not occupy more than one eraseblock. If the requested xattr value is too large, the xattr node can spill onto the next eraseblock, overwriting the nodes and causing errors such as: jffs2: argh. node added in wrong place at 0x0000b050(2) jffs2: nextblock 0x0000a000, expected at 0000b00c jffs2: error: (823) do_verify_xattr_datum: node CRC failed at 0x01e050, read=0xfc892c93, calc=0x000000 jffs2: notice: (823) jffs2_get_inode_nodes: Node header CRC failed at 0x01e00c. {848f,2fc4,0fef511f,59a3d171} jffs2: Node at 0x0000000c with length 0x00001044 would run over the end of the erase block jffs2: Perhaps the file system was created with the wrong erase size? jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x1044 instead This breaks the filesystem and can lead to KASAN crashes such as: BUG: KASAN: slab-out-of-bounds in jffs2_sum_add_kvec+0x125e/0x15d0 Read of size 4 at addr ffff88802c31e914 by task repro/830 CPU: 0 PID: 830 Comm: repro Not tainted 6.9.0-rc3+ #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Arch Linux 1.16.3-1-1 04/01/2014 Call Trace: <TASK> dump_stack_lvl+0xc6/0x120 print_report+0xc4/0x620 ? __virt_addr_valid+0x308/0x5b0 kasan_report+0xc1/0xf0 ? jffs2_sum_add_kvec+0x125e/0x15d0 ? jffs2_sum_add_kvec+0x125e/0x15d0 jffs2_sum_add_kvec+0x125e/0x15d0 jffs2_flash_direct_writev+0xa8/0xd0 jffs2_flash_writev+0x9c9/0xef0 ? __x64_sys_setxattr+0xc4/0x160 ? do_syscall_64+0x69/0x140 ? entry_SYSCALL_64_after_hwframe+0x76/0x7e [...] Found by Linux Verification Center (linuxtesting.org) with Syzkaller.

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/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; 16th 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: partial, assessed 2024-09-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-38599 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-38599?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-38599?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-2024-38599 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.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux2.6.18 and later

Fixed in

ProductRelease lineFixed in
Linux4.194.19.316
Linux5.45.4.278
Linux5.105.10.219
Linux5.155.15.161
Linux6.16.1.93
Linux6.66.6.33
Linux6.86.8.12
Linux6.96.9.3
Linuxlater releases6.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10linux4.19.316-1DLA-3840-1
Debian11linux5.10.221-1DSA-5730-1
Debian12linux6.1.94-1DEBIAN-CVE-2024-38599
Debian13, 14linux6.8.12-1DEBIAN-CVE-2024-38599
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2024-38599
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2024-38599
Ubuntu20.04:LTSlinux5.4.0-192.212UBUNTU-CVE-2024-38599 USN-6951-1
Ubuntu20.04:LTSlinux-aws5.4.0-1130.140UBUNTU-CVE-2024-38599 USN-6951-1
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1069.75~20.04.1UBUNTU-CVE-2024-38599 USN-7007-1
Ubuntu20.04:LTSlinux-azure5.4.0-1135.142UBUNTU-CVE-2024-38599 USN-6951-2
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1072.81~20.04.1UBUNTU-CVE-2024-38599 USN-7009-1
Ubuntu20.04:LTSlinux-azure-fde-5.155.15.0-1072.81~20.04.1.1USN-7009-2
Ubuntu20.04:LTSlinux-bluefield5.4.0-1090.97UBUNTU-CVE-2024-38599 USN-6951-4
Ubuntu20.04:LTSlinux-gcp5.4.0-1134.143UBUNTU-CVE-2024-38599 USN-6951-1
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1068.76~20.04.1UBUNTU-CVE-2024-38599 USN-7007-1
Ubuntu20.04:LTSlinux-gke, linux-riscv, linux-raspi2 and 24 moreno fix listedUBUNTU-CVE-2024-38599
74 more for Ubuntu in the JSON and on Ubuntu's page.
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise Live Patching 15 SP5, Linux Enterprise Micro 5.5 and 2 morekernel-default5.14.21-150500.55.73.1SUSE-SU-2024:2939-1
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6, Linux Enterprise Module for Legacy 15 SP6 and 1 morekernel-default6.4.0-150600.23.14.2SUSE-SU-2024:2571-1
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6, Linux Enterprise Module for Legacy 15 SP6 and 1 morekernel-default6.4.0-150600.23.30.1SUSE-SU-2024:4318-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150500.55.94.1SUSE-SU-2025:0577-1 SUSE-SU-2025:0577-2
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 2 morekernel-default-base5.14.21-150500.55.94.1.150500.6.43.1SUSE-SU-2025:0577-1 SUSE-SU-2025:0577-2
SUSELinux Enterprise Live Patching 15 SP5kernel-default5.14.21-150500.55.94.1SUSE-SU-2025:0577-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5-RT_Update_171-150500.11.3.1SUSE-SU-2024:2394-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_171-150500.11.3.1SUSE-SU-2024:2939-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_231-150500.11.3.1SUSE-SU-2025:0577-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_11-150600.1.5.1SUSE-SU-2024:2973-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_51-150600.1.3.1SUSE-SU-2024:3986-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6_Update_21-150600.13.3.2SUSE-SU-2024:2571-1
41 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5dtb-aarch64, kernel-64kb, kernel-syms and 7 more5.14.21-150500.55.73.1SUSE-SU-2024:2939-1
openSUSELeap 15.5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.60.1SUSE-SU-2024:2372-1
openSUSELeap 15.5kernel-docs5.14.21-150500.55.73.2SUSE-SU-2024:2939-1
openSUSELeap 15.5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.61.1SUSE-SU-2024:2394-1
openSUSELeap 15.5, Leap Micro 5.5kernel-default-base5.14.21-150500.55.73.1.150500.6.33.8SUSE-SU-2024:2939-1
openSUSELeap 15.6dtb-aarch64, kernel-64kb6.4.0-150600.23.14.1SUSE-SU-2024:2571-1
openSUSELeap 15.6dtb-aarch64, kernel-64kb, kernel-docs and 8 more6.4.0-150600.23.30.1SUSE-SU-2024:4318-1
openSUSELeap 15.6kernel-azure6.4.0-150600.8.17.2SUSE-SU-2024:3984-1
openSUSELeap 15.6kernel-azure, kernel-source-azure6.4.0-150600.8.8.2SUSE-SU-2024:2896-1
openSUSELeap 15.6kernel-default-base6.4.0-150600.23.14.2.150600.12.4.3SUSE-SU-2024:2571-1
openSUSELeap 15.6kernel-default-base6.4.0-150600.23.30.1.150600.12.12.6SUSE-SU-2024:4318-1
openSUSELeap 15.6kernel-docs, kernel-syms, kernel-debug and 6 more6.4.0-150600.23.14.2SUSE-SU-2024:2571-1
5 more for openSUSE in the JSON and on openSUSE's page.
Alpaquita23linux-lts6.1.97-r0BELL-CVE-2024-38599
Alpaquita25, streamlinux-lts6.12.41-r0BELL-CVE-2024-38599

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

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A moderate impact out-of-bounds write flaw was found in the Linux kernel's JFFS2 file system. The do_jffs2_setxattr() function did not verify that the requested extended attribute (xattr) node size fits within a single erase block. Because JFFS2 xattr nodes are not split across erase blocks, a local privileged user could set an xattr value so large that the node spills onto the next erase block and overwrites existing nodes, corrupting the file system and potentially triggering out-of-bounds memory accesses that crash the kernel, resulting in data corruption, errors, or a denial of service (system instability). Red Hat Product Security has rated this flaw Moderate severity (CVSS 3.1 score of 5.5, CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) because exploitation requires local privileged access to a system with a JFFS2 file system and the impact is limited to availability; the higher NIST (7.1, Important) and CVE.org (7.8, Important) scores additionally credit confidentiality and integrity impacts that are not supported by Red Hat's assessment. According to the current Red Hat affectedness records, Red Hat Enterprise Linux (kernel and kernel-rt) across supported releases, as well as the Hosted OpenShift (ARO/OSD) and Fedora kernel components, are not affected by this flaw; the Red Hat Enterprise Linux 6 Extended Lifecycle Support kernel stream is out of support scope.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected
Red Hat Enterprise Linux 9kernel-rtNot affected

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-2024-38599.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-102-01Siemens SIMATIC S7-1500 TM MFP2024-04-09Critical ManufacturingSIMATIC S7-1500 TM MFP - GNU/Linux subsystemnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON