CVE-2024-42161

MEDIUM

In the Linux kernel, the following vulnerability has been resolved: bpf: Avoid uninitialized value in BPF_CORE_READ_BITFIELD [Changes from V1: - Use a default branch in the switch statement to i...

Affects 3 products across 2 vendors.

CVSS 3.16.3
EPSS0.2%
Percentile12th
PatchPatched
CVSS Vector — Plain English Requires local access, low complexity, high privileges required, no user interaction needed, impact contained to the vulnerable component, full integrity impact, full availability impact.
CWE Weakness Definitions
CWE-908: CWE-908
◆ AI Analysis — automated analysis, not human-reviewed

The Linux kernel contains a vulnerability in the BPF_CORE_READ_BITFIELD macro where the variable `val` may be used uninitialized, potentially leading to undefined behavior.

BSID: BS-2024-GLOBAL-203293-M • Model: /workspace/models/qwen2.5-coder-32b-instruct-bf16 • Confidence: MEDIUM

Is this CVE in your environment?

BreachSpider monitors your ICS/OT environment for vulnerabilities like this one. No agents or network access required. Free to start.

Check My Environment →
Frequently Asked Questions
What is CVE-2024-42161?
The Linux kernel contains a vulnerability in the BPF_CORE_READ_BITFIELD macro where the variable `val` may be used uninitialized, potentially leading to undefined behavior.
What is the CVSS score for CVE-2024-42161?
CVE-2024-42161 has CVSS 6.3 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:H. EPSS: 0.2%.
Is CVE-2024-42161 actively exploited?
No confirmed active exploitation of CVE-2024-42161 as of 2026-05-30.
How do I remediate CVE-2024-42161?
Priority: MEDIUM. Advisory: https://cert-portal.siemens.com/productcert/html/ssa-503939.html
What systems are affected by CVE-2024-42161?
CVE-2024-42161 affects Linux Linux Kernel; Siemens Ruggedcom Rst2428P.
Vulnerability Details
CVE IDCVE-2024-42161
BSIDBS-2024-GLOBAL-203293-M BreachSpider Global ID
CVSS VectorCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:H
Published2024-07-30
Last Modified2025-11-03
ICS Relevance65%
Weakness (CWE)
Verticals
ICS-OT
SourceNVD
Official Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Avoid uninitialized value in BPF_CORE_READ_BITFIELD [Changes from V1: - Use a default branch in the switch statement to initialize `val'.] GCC warns that `val' may be used uninitialized in the BPF_CRE_READ_BITFIELD macro, defined in bpf_core_read.h as: [...] unsigned long long val; \ [...] \ switch (__CORE_RELO(s, field, BYTE_SIZE)) { \ case 1: val = *(const unsigned char *)p; break; \ case 2: val = *(const unsigned short *)p; break; \ case 4: val = *(const unsigned int *)p; break; \ case 8: val = *(const unsigned long long *)p; break; \ } \ [...] val; \ } \ This patch adds a default entry in the switch statement that sets `val' to zero in order to avoid the warning, and random values to be used in case __builtin_preserve_field_info returns unexpected values for BPF_FIELD_BYTE_SIZE. Tested in bpf-next master. No regressions.

Source: NIST NVD / MITRE CVE Database

Attack Vector Analysis — CITED Relevance

An attacker could exploit this vulnerability by crafting a BPF program that triggers the use of the uninitialized `val` variable, potentially leading to information disclosure or other unspecified impacts.

Exploitation Likelihood: MEDIUM

Affected Products
VendorProductAffected Versions
Linux Linux Kernel < 5.10.222 ≥ 5.11, < 5.15.163 ≥ 5.16, < 6.1.98 ≥ 6.2, < 6.6.39 ≥ 6.7, < 6.9.9
Siemens Ruggedcom Rst2428P (device & firmware) < 3.1
Remediation
View Vendor Advisory →

Remediation Priority: MEDIUM

Threat Intelligence
● Threat Intelligence Validated: October 2026 | Threat Age: 808 Days
CISA known-exploitedNot in KEV catalog
Public ExploitNot confirmed
PoC CodeNot confirmed
AI Enrichment Record — provenance & audit hash
Model/workspace/models/qwen2.5-coder-32b-instruct-bf16
ConfidenceMEDIUM
Enriched At2026-05-24
SHA-512 Audit Hashe1c0306ba86f7772f1638321b285c45b197d863cb4abdc4fa83df7dcd447eb067de6a8531768ca2918b8e7b6b70ee3d09ca98d4579bb82f79690e01a582dfdd6
Related CVEs affecting Linux
CVE-2008-3496 10.0 Buffer overflow in format descriptor parsing in the uvc_parse_format function... CVE-2012-0751 10.0 The ActiveX control in Adobe Flash Player before 10.3.183.15 and 11.x before ... CVE-2011-2452 10.0 Adobe Flash Player before 10.3.183.11 and 11.x before 11.1.102.55 on Windows,... CVE-2012-4163 10.0 Adobe Flash Player before 10.3.183.23 and 11.x before 11.4.402.265 on Windows... CVE-2012-5259 10.0 Buffer overflow in Adobe Flash Player before 10.3.183.29 and 11.x before 11.4...
View all Linux CVEs →

ICS/OT Vulnerability Intelligence for Your Environment

BreachSpider tracks 384,000+ CVEs and matches them to your ICS/OT assets by exact version, with AI analysis, NERC CIP mapping, and vendor PSIRT contacts.

Create a free account →