Skip to main content
Network Thinking Solutions Logo

CVE-2024-39482

In the Linux kernel, the following vulnerability has been resolved: bcache: fix variable length array abuse in btree_iter btree_iter is used in two ways: either allocated on the stack with a fixed size MAX_BSETS, or from a mempool with a dynamic size based on the specific cache set.

All CVEs
CVE-2024-39482Published 7/5/2024

In the Linux kernel, the following vulnerability has been resolved: bcache: fix variable length array abuse in btree_iter btree_iter is used in two ways: either allocated on the stack with a fixed size MAX_BSETS, or from a mempool with a dynamic size based on the specific cache set.

Vendor advisory
CVSS7.8High

Overview

In the Linux kernel, the following vulnerability has been resolved: bcache: fix variable length array abuse in btree_iter btree_iter is used in two ways: either allocated on the stack with a fixed size MAX_BSETS, or from a mempool with a dynamic size based on the specific cache set. Previously, the struct had a fixed-length array of size MAX_BSETS which was indexed out-of-bounds for the dynamically-sized iterators, which causes UBSAN to complain. This patch uses the same approach as in bcachefs's sort_iter and splits the iterator into a btree_iter with a flexible array member and a btree_iter_stack which embeds a btree_iter as well as a fixed-length data array.

Published
7/5/2024
Last modified
10/15/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.10, < 5.10.221

Verify advisory

Source
linux kernel
linux
≥ 5.15, < 5.15.162

Verify advisory

Source
linux kernel
linux
≥ 6.1, < 6.1.94

Verify advisory

Source
linux kernel
linux
≥ 6.6, < 6.6.34

Verify advisory

Source
linux kernel
linux
≥ 6.9, < 6.9.5

Verify advisory

Source
Linux
Linux
≥ cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < 2c3d7b03b658dc8bfa6112b194b67b92a87e081b

Verify advisory

Source
Linux
Linux
≥ cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < 5a1922adc5798b7ec894cd3f197afb6f9591b023

Verify advisory

Source
Linux
Linux
≥ cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < 934e1e4331859183a861f396d7dfaf33cb5afb02

Verify advisory

Source
Linux
Linux
≥ cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < 6479b9f41583b013041943c4602e1ad61cec8148

Verify advisory

Source
Linux
Linux
≥ cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < 0c31344e22dd8d6b1394c6e4c41d639015bdc671

Verify advisory

Source
Linux
Linux
≥ cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < 3a861560ccb35f2a4f0a4b8207fa7c2a35fc7f31

Verify advisory

Source
Linux
Linux
3.10

Verify advisory

Source
RUGGEDCOM RST2428P
Siemens
< V3.1

Verify advisory

Source
SCALANCE XCM-/XRM-/XCH-/XRH-300 family
Siemens
< V3.1

Verify advisory

Source
SIMATIC S7-1500 TM MFP - GNU/Linux subsystem
Siemens
< V1.1.1

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.