7.8

CVE-2024-39482: bcache: fix variable length array abuse in btree_iter

Modified
AliasesUBUNTU-CVE-2024-39482DEBIAN-CVE-2024-39482
Published 05-07-2024Last modified 15-10-2026

Vulnerability summary

CVE-2024-39482 is a high (CVSS 7.8) vulnerability in linux. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 15.9% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.24%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 22 · Related 19

Timeline

  1. 05-07-2024
    PublishedVulnerability first disclosed.
  2. 15-10-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.24%

Chance of exploitation in the next 30 days

Percentile

16%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.24% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu92 products
  • linux< 6.8.0-40.40
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-aws< 6.8.0-1013.14
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < 2c3d7b03b658dc8bfa6112b194b67b92a87e081b | ≥ cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < 5a1922adc5798b7ec894cd3f197afb6f9591b023 | ≥ cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < 934e1e4331859183a861f396d7dfaf33cb5afb02 | ≥ cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < 6479b9f41583b013041943c4602e1ad61cec8148 | ≥ cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < 0c31344e22dd8d6b1394c6e4c41d639015bdc671 | ≥ cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < 3a861560ccb35f2a4f0a4b8207fa7c2a35fc7f31 | 3.10
  • linux_kernel≥ 5.10, < 5.10.221 | ≥ 5.15, < 5.15.162 | ≥ 6.1, < 6.1.94 | ≥ 6.6, < 6.6.34 | ≥ 6.9, < 6.9.5
Debian1 product
  • linux< 6.1.94-1 | < 6.9.7-1

3 vendors · 95 products

References

26 links
Show all 26 references