CVE & CISA-KEV Catalog

CVE-2024-27050

MEDIUM
5.5
CVSS v3
NVD

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.

How to fix

Remediation Available
linuxDebian
Fixed in:6.7.12-1CVE-2024-27050
Fixed in:6.7.12-1CVE-2024-27050
linuxUbuntu
Fixed in:6.8.0-35.35USN-6816-1
linux-awsUbuntu
Fixed in:6.8.0-1009.9USN-6817-1
linux-azureUbuntu
Fixed in:6.8.0-1008.8USN-6817-3
linux-gcpUbuntu
Fixed in:6.8.0-1008.9USN-6817-1
linux-gkeUbuntu
Fixed in:6.8.0-1004.7USN-6817-3
linux-ibmUbuntu
Fixed in:6.8.0-1006.6USN-6816-1
linux-image-6.8.0-1004-gkeUbuntu
Fixed in:6.8.0-1004.7USN-6817-3
linux-image-6.8.0-1005-raspiUbuntu
Fixed in:6.8.0-1005.5USN-6816-1
linux-image-6.8.0-1006-ibmUbuntu
Fixed in:6.8.0-1006.6USN-6816-1
linux-image-6.8.0-1006-oemUbuntu
Fixed in:6.8.0-1006.6USN-6817-2
linux-image-6.8.0-1006-oracleUbuntu
Fixed in:6.8.0-1006.6USN-6878-1
linux-image-6.8.0-1006-oracle-64kUbuntu
Fixed in:6.8.0-1006.6USN-6878-1
linux-image-6.8.0-1008-azureUbuntu
Fixed in:6.8.0-1008.8USN-6817-3
linux-image-6.8.0-1008-azure-fdeUbuntu
Fixed in:6.8.0-1008.8USN-6817-3
linux-image-6.8.0-1008-gcpUbuntu
Fixed in:6.8.0-1008.9USN-6817-1
linux-image-6.8.0-1009-awsUbuntu
Fixed in:6.8.0-1009.9USN-6817-1
linux-image-6.8.0-35-genericUbuntu
Fixed in:6.8.0-35.35+1USN-6816-1
linux-image-6.8.0-35-generic-64kUbuntu
Fixed in:6.8.0-35.35+1USN-6816-1
linux-image-6.8.0-35-lowlatencyUbuntu
Fixed in:6.8.0-35.35.1USN-6816-1
linux-image-6.8.0-35-lowlatency-64kUbuntu
Fixed in:6.8.0-35.35.1USN-6816-1
linux-image-awsUbuntu
Fixed in:6.8.0-1009.9USN-6817-1
linux-image-azureUbuntu
Fixed in:6.8.0-1008.8USN-6817-3
linux-image-azure-fdeUbuntu
Fixed in:6.8.0-1008.8USN-6817-3
linux-image-gcpUbuntu
Fixed in:6.8.0-1008.9USN-6817-1
linux-image-genericUbuntu
Fixed in:6.8.0-35.35USN-6816-1
linux-image-generic-64kUbuntu
Fixed in:6.8.0-35.35USN-6816-1
linux-image-generic-64k-hwe-24.04Ubuntu
Fixed in:6.8.0-35.35USN-6816-1
linux-image-generic-hwe-24.04Ubuntu
Fixed in:6.8.0-35.35USN-6816-1
linux-image-generic-lpaeUbuntu
Fixed in:6.8.0-35.35USN-6816-1
linux-image-gkeUbuntu
Fixed in:6.8.0-1004.7USN-6817-3
linux-image-ibmUbuntu
Fixed in:6.8.0-1006.6USN-6816-1
linux-image-ibm-classicUbuntu
Fixed in:6.8.0-1006.6USN-6816-1
linux-image-ibm-lts-24.04Ubuntu
Fixed in:6.8.0-1006.6USN-6816-1
linux-image-kvmUbuntu
Fixed in:6.8.0-35.35USN-6816-1
linux-image-lowlatencyUbuntu
Fixed in:6.8.0-35.35.1USN-6816-1
linux-image-lowlatency-64kUbuntu
Fixed in:6.8.0-35.35.1USN-6816-1
linux-image-oem-24.04Ubuntu
Fixed in:6.8.0-1006.6+1USN-6817-2
linux-image-oem-24.04aUbuntu
Fixed in:6.8.0-1006.6+1USN-6817-2
linux-image-oracleUbuntu
Fixed in:6.8.0-1006.6USN-6878-1
linux-image-oracle-64kUbuntu
Fixed in:6.8.0-1006.6USN-6878-1
linux-image-raspiUbuntu
Fixed in:6.8.0-1005.5USN-6816-1
linux-image-virtualUbuntu
Fixed in:6.8.0-35.35USN-6816-1
linux-image-virtual-hwe-24.04Ubuntu
Fixed in:6.8.0-35.35USN-6816-1
linux-lowlatencyUbuntu
Fixed in:6.8.0-35.35.1USN-6816-1
linux-oem-6.8Ubuntu
Fixed in:6.8.0-1006.6USN-6817-2
linux-oracleUbuntu
Fixed in:6.8.0-1006.6USN-6878-1
linux-raspiUbuntu
Fixed in:6.8.0-1005.5USN-6816-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

0.27%probability of exploitation in 30 days
19thpercentile

Low risk: more likely to be exploited than 19% of all known CVEs.

References

Related Vulnerabilities

Other CWE-787 (Out-of-bounds Write) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2025-22457Critical9.0100%KEV + RansomFix
CVE-2025-0282Critical9.0100%KEV + Ransom-
CVE-2015-3113Critical9.8100%KEVFix
CVE-2021-20038Critical9.8100%KEV + Ransom-
CVE-2023-4863High8.8100%KEVFix
CVE-2020-16040Medium6.5100%-Fix
Embed a live status badge for CVE-2024-27050
CVE-2024-27050 severity badge

Markdown

[![CVE-2024-27050](https://tridentstack.com/cve/badge/CVE-2024-27050.svg)](https://tridentstack.com/cve/CVE-2024-27050)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-27050"><img src="https://tridentstack.com/cve/badge/CVE-2024-27050.svg" alt="CVE-2024-27050"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-04-08.