Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-27050

HIGH 7.8EPSS 18%

libbpf: Use OPTS_SET() macro in bpf_xdp_query()

Mitigation

  • Upgrade Linux to 92a871ab9fa59a74d013bc04f321026a057618e7 or later.

Who should check

  • Anyone running Linux >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < fa5bef5e80c6a3321b2b1a7070436f3bc5daf07c; >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < 682ddd62abd4bdcee7584246903e7a2df005fe0d; >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < cd3be9843247edb8fc6fcd8d8237cbce2bc19f5e; >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < 92a871ab9fa59a74d013bc04f321026a057618e7
  • Anyone running Linux 6.6

Vulnerability facts

Affected
Linux >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < fa5bef5e80c6a3321b2b1a7070436f3bc5daf07c; >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < 682ddd62abd4bdcee7584246903e7a2df005fe0d; >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < cd3be9843247edb8fc6fcd8d8237cbce2bc19f5e; >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < 92a871ab9fa59a74d013bc04f321026a057618e7; Linux 6.6
Fixed in
Linux 682ddd62abd4bdcee7584246903e7a2df005fe0d, Linux 92a871ab9fa59a74d013bc04f321026a057618e7
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.33% chance of exploitation in 30 days (percentile 18, 2026-11-26)
CWE
CWE-787
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < fa5bef5e80c6a3321b2b1a7070436f3bc5daf07c; >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < 682ddd62abd4bdcee7584246903e7a2df005fe0d; >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < cd3be9843247edb8fc6fcd8d8237cbce2bc19f5e; >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < 92a871ab9fa59a74d013bc04f321026a057618e7—cvelist
Linux6.6—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-27050. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-27050.md
Affected: Linux >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < fa5bef5e80c6a3321b2b1a7070436f3bc5daf07c; >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < 682ddd62abd4bdcee7584246903e7a2df005fe0d; >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < cd3be9843247edb8fc6fcd8d8237cbce2bc19f5e; >= 13ce2daa259a3bfbc9a5aee…
Fixed in: Linux 682ddd62abd4bdcee7584246903e7a2df005fe0d, Linux 92a871ab9fa59a74d013bc04f321026a057618e7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-27050 being exploited?

There is no confirmed exploitation: CVE-2024-27050 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-27050?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-27050?

Linux >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < fa5bef5e80c6a3321b2b1a7070436f3bc5daf07c; >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < 682ddd62abd4bdcee7584246903e7a2df005fe0d; >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < cd3be9843247edb8fc6fcd8d8237cbce2bc19f5e; >= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731, < 92a871ab9fa59a74d013bc04f321026a057618e7; Linux 6.6.

Is there a fix for CVE-2024-27050?

Yes. Fixed in Linux 682ddd62abd4bdcee7584246903e7a2df005fe0d, Linux 92a871ab9fa59a74d013bc04f321026a057618e7. Upgrade Linux to 92a871ab9fa59a74d013bc04f321026a057618e7 or later.

How do I check if I'm affected by CVE-2024-27050?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors