CVE-2024-27050
Linux Kernel vulnerability analysis and mitigation

Overview

In the Linux kernel, a vulnerability (CVE-2024-27050) was discovered in the libbpf component, specifically in the bpf_xdp_query() function. The issue was identified and disclosed in May 2024, affecting the Linux kernel's BPF (Berkeley Packet Filter) subsystem (Kernel Git).

Technical details

The vulnerability stems from improper field assignments in the bpf_xdp_query_opts structure. When the feature_flags and xdp_zc_max_segs fields were added to the libbpf bpf_xdp_query_opts, the code writing them did not use the OPTS_SET() macro. This caused libbpf to write to these fields unconditionally, which means that programs compiled against an older version of libbpf (with a smaller size of the bpf_xdp_query_opts struct) would have their stack corrupted by libbpf writing out of bounds. According to CISA's assessment, this vulnerability has a CVSS v3.1 base score of 5.5 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability can lead to stack corruption in programs compiled against older versions of libbpf when interacting with the bpf_xdp_query() function. This could potentially result in system instability or denial of service conditions (Kernel Git).

Exploitability

The vulnerability requires local access and low privileges to exploit. It primarily affects systems where programs are compiled against older versions of libbpf while interacting with newer kernel versions that include the affected code (NVD).

Mitigation and workarounds

The issue has been fixed by modifying the code to use the OPTS_SET() macro for both feature_flags and xdp_zc_max_segs field assignments. The fix ensures proper bounds checking when writing to these fields. The patch has been merged into the Linux kernel and is available in updated versions (Kernel Git).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Fixed

bullseye

linux

Fixed

sid

linux: 6.7.12-1

Fixed

trixie

linux: 6.7.12-1

Fixed

SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-93189HIGH8.8
  • Linux Kernel logoLinux Kernel
  • linux-azure-fips
NoYesSep 17, 2026
CVE-2026-93188MEDIUM6.5
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-tegra-5.15
NoYesSep 17, 2026
CVE-2026-93182NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-fips
NoYesSep 17, 2026
CVE-2026-93181NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-4.15
NoNoSep 17, 2026
CVE-2026-93174NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoYesSep 17, 2026

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