CVE-2024-27050: libbpf: Use OPTS_SET() macro in bpf_xdp_query()
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.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 10 · Related 10Timeline
- 01-05-2024PublishedVulnerability first disclosed.
- 05-08-2026Last 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- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
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