CVE-2024-50161
Linux Debian vulnerability analysis and mitigation

Overview

In the Linux kernel, a vulnerability (CVE-2024-50161) was discovered in the BPF subsystem related to BTF (BPF Type Format) field handling. The issue occurs when trying to repeat BTF fields for an array of nested structs, where the code fails to check the remaining info_cnt. This vulnerability was disclosed on November 7, 2024, affecting Linux kernel versions from 6.11 through 6.11.6, and various release candidates of version 6.12 (NVD).

Technical details

The vulnerability manifests when the value of ret * nelems is greater than BTFFIELDSMAX, leading to an array-index-out-of-bounds condition in the kernel/bpf/btf.c file. This results in a UBSAN (Undefined Behavior Sanitizer) warning. The issue stems from improper validation of array indices during BTF field parsing. The CVSS v3.1 base score is 5.5 (Medium), with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When exploited, this vulnerability can cause an array-index-out-of-bounds condition, potentially leading to a denial of service (system crash) through accessing unmapped memory above the stack. The issue affects the system's stability and availability, though it does not appear to compromise confidentiality or integrity (NVD).

Mitigation and workarounds

The vulnerability has been fixed by adding a check for the remaining infocnt in btfrepeat_fields() before repeating the BTF fields. The fix was implemented in kernel patch 797d73ee232dd1833dec4824bc53a22032e97c1c. Users are advised to upgrade to Linux kernel version 6.11.6 or later (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66570CRITICAL10
  • Linux DebianLinux Debian
  • cpp-httplib
NoNoDec 05, 2025
CVE-2025-66471HIGH8.9
  • PythonPython
  • urllib3
NoYesDec 05, 2025
CVE-2025-66566HIGH8.2
  • JavaJava
  • org.lz4:lz4-pure-java
NoYesDec 05, 2025
CVE-2025-66577MEDIUM5.3
  • Linux DebianLinux Debian
  • cpp-httplib
NoNoDec 05, 2025
CVE-2025-66549LOW2.4
  • Linux DebianLinux Debian
  • nextcloud-desktop
NoYesDec 05, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management