cbcvebase.
CVE-2024-27050
published 2024-05-01

CVE-2024-27050: 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…

PriorityP339high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.29%
21.0th percentile
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

16 ranges
VendorProductVersion rangeFixed in
debianlinux< linux 6.7.12-1 (forky)linux 6.7.12-1 (forky)
linuxlinux——
linuxlinux>= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731 < fa5bef5e80c6a3321b2b1a7070436f3bc5daf07cfa5bef5e80c6a3321b2b1a7070436f3bc5daf07c
linuxlinux>= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731 < 682ddd62abd4bdcee7584246903e7a2df005fe0d682ddd62abd4bdcee7584246903e7a2df005fe0d
linuxlinux>= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731 < cd3be9843247edb8fc6fcd8d8237cbce2bc19f5ecd3be9843247edb8fc6fcd8d8237cbce2bc19f5e
linuxlinux>= 13ce2daa259a3bfbc9a5aeeee8b9a87058703731 < 92a871ab9fa59a74d013bc04f321026a057618e792a871ab9fa59a74d013bc04f321026a057618e7
linuxlinux_kernel>= 0 < 6.7.12-16.7.12-1
linuxlinux_kernel>= 0 < 6.7.12-16.7.12-1
linuxlinux_kernel>= 0 < 6.8.0-35.356.8.0-35.35
linuxlinux_kernel>= 6.6 < 6.6.236.6.23
linuxlinux_kernel>= 6.7 < 6.7.116.7.11
linuxlinux_kernel>= 6.8 < 6.8.26.8.2
msrcazl3_hyperv-daemons_6.6.22.1-2_on_azure_linux_3.0——
msrcazl3_hyperv-daemons_6.6.35.1-1_on_azure_linux_3.0——
msrcazure_linux_3.0_arm——
msrcazure_linux_3.0_x64——

CVSS provenance

nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv5.5MEDIUM
vendor_ubuntu6.3MEDIUM
vendor_debian5.5LOW
vendor_msrc5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.