VDB

CVE-2024-39482

CVE-2024-39482 PUBLISHED CVSS 7.8 HIGH

bcache: fix variable length array abuse in btree_iter

Reported by linux · Published July 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. 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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-libbpf-staticAmazon Linux6.1.94-99.176.amzn2023
kernelAmazon Linux6.1.94-99.176.amzn2023

Risk scores

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

Affected products

VendorProductVersions
LinuxLinuxcafe563591446cf80bfbc2fe3bc72a2e36cf1060, cafe563591446cf80bfbc2fe3bc72a2e36cf1060, cafe563591446cf80bfbc2fe3bc72a2e36cf1060
LinuxLinux3.10, 0, 5.10.221
amazon:2023kernel-libbpf-static0
amazon:2023kernel0
linuxlinux_kernel3.10, 3.10, 3.10
amazon:2023kernel-modules-extra0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-tools-devel0
LinuxLinux*, *, *
amazon:2023kernel-tools0
amazon:2023kernel-devel0
amazon:2023perf0
amazon:2023kernel-libbpf0
amazon:2023kernel-modules-extra-common0
amazon:2023python3-perf0
SiemensSCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family0
SiemensRUGGEDCOM RST2428P0
amazon:2023bpftool0
amazon:2023kernel-headers0
amazon:2023kernel-livepatch-6.1.94-99.1760

…and 2 more

Timeline

  • Jul 4, 2024 CVE Published
  • Jul 5, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (7 in total, the first dated here)
  • Jan 8, 2026 Security Advisory (81 in total, the first dated here)
  • Feb 16, 2026 CVE Updated
  • Mar 30, 2026 Distribution Patch (78 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-39482
vulnetix vdb fixes CVE-2024-39482

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-39482/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›