7.8

CVE-2024-27050: libbpf: Use OPTS_SET() macro in bpf_xdp_query()

Modified
AliasesUBUNTU-CVE-2024-27050DEBIAN-CVE-2024-27050
Published 01-05-2024Last modified 05-08-2026

Vulnerability summary

CVE-2024-27050 is a high (CVSS 7.8) Out-of-bounds Write vulnerability in linux. EPSS estimates a 0.29% chance of exploitation in the next 30 days, higher than 21% 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.29%
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 10 · Related 10

Timeline

  1. 01-05-2024
    PublishedVulnerability first disclosed.
  2. 05-08-2026
    Last modifiedVulnerability information updated.

Description

In the Linux kernel, the following vulnerability has been resolved: libbpf: Use OPTS_SET() macro in bpf_xdp_query() 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 causes libbpf to write to those fields unconditionally, which means that programs compiled against an older version of libbpf (with a smaller size of the bpf_xdp_query_opts struct) will have its stack corrupted by libbpf writing out of bounds. The patch adding the feature_flags field has an early bail out if the feature_flags field is not part of the opts struct (via the OPTS_HAS) macro, but the patch adding xdp_zc_max_segs does not. For consistency, this fix just changes the assignments to both fields to use the OPTS_SET() macro.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.29%

Chance of exploitation in the next 30 days

Percentile

21%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.29% on 04-10-2026

04-10-202603-11-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.

Ubuntu72 products
  • linux< 6.8.0-35.35
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-aws< 6.8.0-1009.9
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < fa5bef5e80c6a3321b2b1a7070436f3bc5daf07c | ≥ 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < 682ddd62abd4bdcee7584246903e7a2df005fe0d | ≥ 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < cd3be9843247edb8fc6fcd8d8237cbce2bc19f5e | ≥ 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < 92a871ab9fa59a74d013bc04f321026a057618e7 | 6.6
  • linux_kernel≥ 6.6, < 6.6.23 | ≥ 6.7, < 6.7.11 | ≥ 6.8, < 6.8.2
Debian1 product
  • linux< 6.7.12-1

3 vendors · 75 products

References

14 links
Show all 14 references