CVE-2024-46840
MediumIn the Linux kernel, the following vulnerability has been resolved: btrfs: clean up our handling of refs == 0 in snapshot delete In reada we BUG_ON(refs == 0), which could be unkind since we aren't holding a lock on the extent leaf and thus could get a transient incorrect answer. In walk_down_proc we also BUG_ON(refs == 0), which could happen if we have extent tree corruption. Change that to return -EUCLEAN. In do_walk_down() we catch this case and handle it correctly, however we return -EIO, which -EUCLEAN is a more appropriate error code. Finally in walk_up_proc we have the same BUG_ON(refs == 0), so convert that to proper error handling. Also adjust the error message so we can actually do something with the information.
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected versions
Linux kernel versions
2.6.31
and later are affected. Fixed in
4.19.322,
5.4.284,
5.10.226,
5.15.167,
6.1.110,
6.6.51,
6.10.10,
6.11
and their respective stable series.
References
The following references provide additional information about CVE-2024-46840 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
-
-
PatchKernel patch commithttps://git.kernel.org/stable/c/03804641ec2d0da4fa088ad21c88e703d151ce16
-
PatchKernel patch commithttps://git.kernel.org/stable/c/71291aa7246645ef622621934d2067400380645e
-
PatchKernel patch commithttps://git.kernel.org/stable/c/728d4d045b628e006b48a448f3326a7194c88d32
Frequently asked questions
-
What is CVE-2024-46840?
CVE-2024-46840 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 . It affects Linux kernel versions from 2.6.31 onward and has been patched in 4.19.322, 5.4.284, 5.10.226 and others. CVE-2024-46840 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2024-46840?
CVE-2024-46840 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2024-46840?
Yes — CVE-2024-46840 has been patched. Fixed versions include 4.19.322, 5.4.284, 5.10.226 and others. If you are running Linux kernel 2.6.31 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2024-46840 actively exploited?
No — CVE-2024-46840 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.