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

Published May 1, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

libbpf: Use OPTSSET() macro in bpfxdpquery()

When the featureflags and xdpzcmaxsegs fields were added to the libbpf bpfxdpqueryopts, the code writing them did not use the OPTSSET() 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 bpfxdpqueryopts struct) will have its stack corrupted by libbpf writing out of bounds.

The patch adding the featureflags field has an early bail out if the featureflags field is not part of the opts struct (via the OPTSHAS) macro, but the patch adding xdpzcmaxsegs does not. For consistency, this fix just changes the assignments to both fields to use the OPTSSET() macro.

Affected Software

6 affected componentsFixes available
Linux Linux kernel>=6.6<6.6.23
Linux Linux kernel>=6.7<6.7.11
Linux Linux kernel>=6.8<6.8.2
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
Microsoft azl3 hyperv-daemons 6.6.22.1-2
Microsoft azl3 hyperv-daemons 6.6.35.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1

Event History

May 1, 2024
CVE Published
via MITRE·12:54 PM
Data Sourced
via MITRE·12:54 PM
DescriptionSeverity
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 8, 2024
Data Sourced
via Launchpad·01:13 AM
Description
Sep 11, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Dec 1, 2024
Data Sourced
via Ubuntu·05:29 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-27050?

CVE-2024-27050 has not been explicitly assigned a CVSS score but involves a flaw in the Linux kernel that could impact the functionality of bpf_xdp_query_opts.

2

How do I fix CVE-2024-27050?

To fix CVE-2024-27050, upgrade your Linux kernel to one of the patched versions, such as 5.10.223-1 or 6.12.11-1.

3

What systems are affected by CVE-2024-27050?

CVE-2024-27050 affects specific versions of the Linux kernel including 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.119-1, 6.12.10-1, and 6.12.11-1.

4

What is the primary component affected by CVE-2024-27050?

The primary component affected by CVE-2024-27050 is the libbpf functionality within the Linux kernel.

5

Is there an active exploit for CVE-2024-27050?

As of now, there are no reported active exploits for CVE-2024-27050.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203