Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-47699

MEDIUM 5.5EPSS 22%

nilfs2: fix potential null-ptr-deref in nilfs_btree_insert()

Mitigation

  • Upgrade Linux to 9403001ad65ae4f4c5de368bdda3a0636b51d51a or later.

Who should check

  • Anyone running Linux >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 2b78e9df10fb7f4e9d3d7a18417dd72fbbc1dfd0; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 1d94dbdfbb64cc48d10dec65cc3c4fbf2497b343; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 24bf40740a3da6b4056721da34997ae6938f3da1; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 73d23ecf234b7a6d47fb883f2dabe10e3230b31d; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < f68523e0f26faade18833fbef577a4295d8e2c94; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 21839b6fbc3c41b3e374ecbdb0cabbbb2c53cf34; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < db73500d3f0e558eb642aae1d4782e7726b4a03f; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 3644554d308ddf2669e459a1551a7edf60b2d62b; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 9403001ad65ae4f4c5de368bdda3a0636b51d51a
  • Anyone running Linux 2.6.30

Vulnerability facts

Affected
Linux >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 2b78e9df10fb7f4e9d3d7a18417dd72fbbc1dfd0; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 1d94dbdfbb64cc48d10dec65cc3c4fbf2497b343; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 24bf40740a3da6b4056721da34997ae6938f3da1; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 73d23ecf234b7a6d47fb883f2dabe10e3230b31d; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < f68523e0f26faade18833fbef577a4295d8e2c94; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 21839b6fbc3c41b3e374ecbdb0cabbbb2c53cf34; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < db73500d3f0e558eb642aae1d4782e7726b4a03f; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 3644554d308ddf2669e459a1551a7edf60b2d62b; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 9403001ad65ae4f4c5de368bdda3a0636b51d51a; Linux 2.6.30
Fixed in
Linux 2b78e9df10fb7f4e9d3d7a18417dd72fbbc1dfd0, Linux 1d94dbdfbb64cc48d10dec65cc3c4fbf2497b343, Linux 24bf40740a3da6b4056721da34997ae6938f3da1, Linux 73d23ecf234b7a6d47fb883f2dabe10e3230b31d, Linux 21839b6fbc3c41b3e374ecbdb0cabbbb2c53cf34, Linux 3644554d308ddf2669e459a1551a7edf60b2d62b, Linux 9403001ad65ae4f4c5de368bdda3a0636b51d51a
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.35% chance of exploitation in 30 days (percentile 22, 2026-11-26)
CWE
CWE-476
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix potential null-ptr-deref in nilfs_btree_insert() Patch series "nilfs2: fix potential issues with empty b-tree nodes". This series addresses three potential issues with empty b-tree nodes that can occur with corrupted filesystem images, including one recently discovered by syzbot. This patch (of 3): If a b-tree is broken on the device, and the b-tree height is greater than 2 (the level of the root node is greater than 1) even if the number of child nodes of the b-tree root is 0, a NULL pointer dereference occurs in nilfs_btree_prepare_insert(), which is called from nilfs_btree_insert(). This is because, when the number of child nodes of the b-tree root is 0, nilfs_btree_do_lookup() does not set the block buffer head in any of path[x].bp_bh, leaving it as the initial value of NULL, but if the level of the b-tree root node is greater than 1, nilfs_btree_get_nonroot_node(), which accesses the buffer memory of path[x].bp_bh, is called. Fix this issue by adding a check to nilfs_btree_root_broken(), which performs sanity checks when reading the root node from the device, to detect this inconsistency. Thanks to Lizhi Xu for trying to solve the bug and clarifying the cause early on.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 2b78e9df10fb7f4e9d3d7a18417dd72fbbc1dfd0; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 1d94dbdfbb64cc48d10dec65cc3c4fbf2497b343; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 24bf40740a3da6b4056721da34997ae6938f3da1; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 73d23ecf234b7a6d47fb883f2dabe10e3230b31d; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < f68523e0f26faade18833fbef577a4295d8e2c94; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 21839b6fbc3c41b3e374ecbdb0cabbbb2c53cf34; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < db73500d3f0e558eb642aae1d4782e7726b4a03f; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 3644554d308ddf2669e459a1551a7edf60b2d62b; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 9403001ad65ae4f4c5de368bdda3a0636b51d51a—cvelist
Linux2.6.30—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-47699. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-47699.md
Affected: Linux >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 2b78e9df10fb7f4e9d3d7a18417dd72fbbc1dfd0; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 1d94dbdfbb64cc48d10dec65cc3c4fbf2497b343; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 24bf40740a3da6b4056721da34997ae6938f3da1; >= 17c76b0104e4a6513983777…
Fixed in: Linux 2b78e9df10fb7f4e9d3d7a18417dd72fbbc1dfd0, Linux 1d94dbdfbb64cc48d10dec65cc3c4fbf2497b343, Linux 24bf40740a3da6b4056721da34997ae6938f3da1, Linux 73d23ecf234b7a6d47fb883f2dabe10e3230b31d, Linux 21839b6fbc3c41b3e374ecbdb0cabbbb2c53cf34, Linux 3644554d308ddf2669e459a1551a7edf60b2d62b, Linux 94030…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-47699 being exploited?

There is no confirmed exploitation: CVE-2024-47699 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-47699?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-47699?

Linux >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 2b78e9df10fb7f4e9d3d7a18417dd72fbbc1dfd0; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 1d94dbdfbb64cc48d10dec65cc3c4fbf2497b343; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 24bf40740a3da6b4056721da34997ae6938f3da1; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 73d23ecf234b7a6d47fb883f2dabe10e3230b31d; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < f68523e0f26faade18833fbef577a4295d8e2c94; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 21839b6fbc3c41b3e374ecbdb0cabbbb2c53cf34; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < db73500d3f0e558eb642aae1d4782e7726b4a03f; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 3644554d308ddf2669e459a1551a7edf60b2d62b; >= 17c76b0104e4a6513983777e1a17e0297a12b0c4, < 9403001ad65ae4f4c5de368bdda3a0636b51d51a; Linux 2.6.30.

Is there a fix for CVE-2024-47699?

Yes. Fixed in Linux 2b78e9df10fb7f4e9d3d7a18417dd72fbbc1dfd0, Linux 1d94dbdfbb64cc48d10dec65cc3c4fbf2497b343, Linux 24bf40740a3da6b4056721da34997ae6938f3da1, Linux 73d23ecf234b7a6d47fb883f2dabe10e3230b31d, Linux 21839b6fbc3c41b3e374ecbdb0cabbbb2c53cf34, Linux 3644554d308ddf2669e459a1551a7edf60b2d62b, Linux 9403001ad65ae4f4c5de368bdda3a0636b51d51a. Upgrade Linux to 9403001ad65ae4f4c5de368bdda3a0636b51d51a or later.

How do I check if I'm affected by CVE-2024-47699?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors