Skip to content
Noroxi
CVE-2024-38599· NVD / CVE Program· CNA Linux

jffs2: prevent xattr node from overflowing the eraseblock

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.

HighCVSS 7.1 · v3.1—No exploit Fix available
Published
Jun 19, 2024
Updated
Aug 5, 2026
EPSS
0.2% · 14th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

28

Monitor

Low priority for now.

CVSS
28 / 40 · 7.1 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.2%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
7.1
CNA · Linux
7.8
0.7 point gap

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

VendorProduct
linuxlinux kernel

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • linux linux kernel2.6.18 and later · before 4.19.316
  • linux linux kernel4.20 and later · before 5.4.278
  • linux linux kernel5.5 and later · before 5.10.219
  • linux linux kernel5.11 and later · before 5.15.161
  • linux linux kernel5.16 and later · before 6.1.93
  • linux linux kernel6.2 and later · before 6.6.33
  • linux linux kernel6.7 and later · before 6.8.12
  • linux linux kernel6.9 and later · before 6.9.3

Versions reported by the vendor

Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.

  • Linux Linux

    • 2.6.18affected
    • aa98d7cf59b5b0764d3502662053489585faf2fe and later · before 2904e1d9b64f72d291095e3cbb31634f08788b11affected · git
    • aa98d7cf59b5b0764d3502662053489585faf2fe and later · before 526235dffcac74c7823ed504dfac4f88d84ba5dfaffected · git
    • aa98d7cf59b5b0764d3502662053489585faf2fe and later · before f0eea095ce8c959b86e1e57fe36ca4fea5ae54f8affected · git
    • aa98d7cf59b5b0764d3502662053489585faf2fe and later · before a1d21bcd78cf4a4353e1e835789429c6b76aca8baffected · git
    • aa98d7cf59b5b0764d3502662053489585faf2fe and later · before f06969df2e40ab1dc8f4364a5de967830c74a098affected · git
    • aa98d7cf59b5b0764d3502662053489585faf2fe and later · before af82d8d2179b7277ad627c39e7e0778f1c86ccdbaffected · git
    • aa98d7cf59b5b0764d3502662053489585faf2fe and later · before 8d431391320c5c5398ff966fb3a95e68a7def275affected · git
    • aa98d7cf59b5b0764d3502662053489585faf2fe and later · before 978a12c91b38bf1a213e567f3c20e2beef215f07affected · git
    • aa98d7cf59b5b0764d3502662053489585faf2fe and later · before c6854e5a267c28300ff045480b5a7ee7f6f1d913affected · git

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12linuxbefore 6.1.94-16.1.94-1
Debian:13linuxbefore 6.8.12-16.8.12-1
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSkernel-64kbbefore 5.14.21-150500.55.94.15.14.21-150500.55.94.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSkernel-docsbefore 5.14.21-150500.55.94.15.14.21-150500.55.94.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSkernel-obs-buildbefore 5.14.21-150500.55.94.15.14.21-150500.55.94.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSkernel-symsbefore 5.14.21-150500.55.94.15.14.21-150500.55.94.1
SUSE:Linux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_23before 1-150500.11.3.11-150500.11.3.1
SUSE:Linux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_5before 1-150600.1.3.11-150600.1.3.1
SUSE:Linux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_5before 1-150600.1.3.11-150600.1.3.1
SUSE:Linux Enterprise Micro 5.5kernel-defaultbefore 5.14.21-150500.55.94.15.14.21-150500.55.94.1
SUSE:Linux Enterprise Micro 5.5kernel-default-basebefore 5.14.21-150500.55.94.1.150500.6.43.15.14.21-150500.55.94.1.150500.6.43.1
SUSE:Linux Enterprise Micro 5.5kernel-rtbefore 5.14.21-150500.13.85.15.14.21-150500.13.85.1
SUSE:Linux Enterprise Micro 5.5kernel-sourcebefore 5.14.21-150500.55.94.15.14.21-150500.55.94.1
SUSE:Linux Enterprise Micro 5.5kernel-source-rtbefore 5.14.21-150500.13.85.15.14.21-150500.13.85.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP6kernel-azurebefore 6.4.0-150600.8.17.26.4.0-150600.8.17.2
SUSE:Linux Enterprise Module for Public Cloud 15 SP6kernel-azurebefore 6.4.0-150600.8.17.26.4.0-150600.8.17.2
SUSE:Linux Enterprise Module for Public Cloud 15 SP6kernel-source-azurebefore 6.4.0-150600.8.17.16.4.0-150600.8.17.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP6kernel-source-azurebefore 6.4.0-150600.8.17.16.4.0-150600.8.17.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP6kernel-syms-azurebefore 6.4.0-150600.8.17.16.4.0-150600.8.17.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP6kernel-syms-azurebefore 6.4.0-150600.8.17.16.4.0-150600.8.17.1
SUSE:Linux Enterprise Server 11 SP4 LTSS EXTREME COREkernel-defaultbefore 3.0.101-108.168.13.0.101-108.168.1
SUSE:Linux Enterprise Server 11 SP4 LTSS EXTREME COREkernel-defaultbefore 3.0.101-108.159.13.0.101-108.159.1
SUSE:Linux Enterprise Server 11 SP4 LTSS EXTREME COREkernel-ec2before 3.0.101-108.159.13.0.101-108.159.1
SUSE:Linux Enterprise Server 11 SP4 LTSS EXTREME COREkernel-ec2before 3.0.101-108.168.13.0.101-108.168.1

+17

Other highest-scoring records for the same primary product.

  • CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe KEV
    89Now
  • CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV
    85Now
  • CVE-2016-5195Race condition in mm/gup.c in the Linux kernel 2.x through 4.x before 4.8.3 allows local users to gain privileges by leveraging incorrect haKEV
    83Now
  • CVE-2019-13272In the Linux kernel before 5.1.17, ptrace_link in kernel/ptrace.c mishandles the recording of the credentials of a process that wants to creKEV
    77This week
  • CVE-2013-6282The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the v6k and v7 ARM platforms do not validate certain addKEV
    77This week
  • CVE-2013-2094The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9 uses an incorrect integer data type, which allows loKEV
    77This week

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Linux Linux2904e1d9b64f72d291095e3cbb31634f08788b11Vendor (CNA)
Linux Linux526235dffcac74c7823ed504dfac4f88d84ba5dfVendor (CNA)
Linux Linux8d431391320c5c5398ff966fb3a95e68a7def275Vendor (CNA)
Linux Linux978a12c91b38bf1a213e567f3c20e2beef215f07Vendor (CNA)
Linux Linuxa1d21bcd78cf4a4353e1e835789429c6b76aca8bVendor (CNA)
Linux Linuxaf82d8d2179b7277ad627c39e7e0778f1c86ccdbVendor (CNA)
Linux Linuxc6854e5a267c28300ff045480b5a7ee7f6f1d913Vendor (CNA)
Linux Linuxf06969df2e40ab1dc8f4364a5de967830c74a098Vendor (CNA)
Linux Linuxf0eea095ce8c959b86e1e57fe36ca4fea5ae54f8Vendor (CNA)
debian:linux6.1.94-1 · Debian:12Package registry (OSV)
opensuse:kernel-azure6.4.0-150600.8.17.2 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-rt6.4.0-150600.10.17.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-source-azure6.4.0-150600.8.17.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-syms-azure6.4.0-150600.8.17.1 · openSUSE:Leap 15.6Package registry (OSV)
suse:kernel-azure6.4.0-150600.8.17.2 · SUSE:Linux Enterprise Module for Public Cloud 15 SP6Package registry (OSV)
suse:kernel-default3.0.101-108.159.1 · SUSE:Linux Enterprise Server 11 SP4 LTSS EXTREME COREPackage registry (OSV)
suse:kernel-ec23.0.101-108.159.1 · SUSE:Linux Enterprise Server 11 SP4 LTSS EXTREME COREPackage registry (OSV)
suse:kernel-livepatch-SLE15-SP6-RT_Update_51-150600.1.3.1 · SUSE:Linux Enterprise Live Patching 15 SP6Package registry (OSV)
suse:kernel-rt6.4.0-150600.10.17.1 · SUSE:Real Time Module 15 SP6Package registry (OSV)
suse:kernel-rt_debug6.4.0-150600.10.17.1 · SUSE:Real Time Module 15 SP6Package registry (OSV)
suse:kernel-source3.0.101-108.159.1 · SUSE:Linux Enterprise Server 11 SP4 LTSS EXTREME COREPackage registry (OSV)
suse:kernel-source-azure6.4.0-150600.8.17.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP6Package registry (OSV)
suse:kernel-source-rt6.4.0-150600.10.17.1 · SUSE:Real Time Module 15 SP6Package registry (OSV)
suse:kernel-syms3.0.101-108.159.1 · SUSE:Linux Enterprise Server 11 SP4 LTSS EXTREME COREPackage registry (OSV)
suse:kernel-syms-azure6.4.0-150600.8.17.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP6Package registry (OSV)
suse:kernel-syms-rt6.4.0-150600.10.17.1 · SUSE:Real Time Module 15 SP6Package registry (OSV)
suse:kernel-trace3.0.101-108.159.1 · SUSE:Linux Enterprise Server 11 SP4 LTSS EXTREME COREPackage registry (OSV)
suse:kernel-xen3.0.101-108.159.1 · SUSE:Linux Enterprise Server 11 SP4 LTSS EXTREME COREPackage registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
none
Availability
high · the service can be disrupted
Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
None
Availability impact
High

Weakness class (CWE)

CWE-125 · Out-of-bounds Read

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

ATT&CK techniques

—

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records