CVE-2024-27414: rtnetlink: fix error logic of IFLA_BRIDGE_FLAGS writing back

Published May 17, 2024
·
Updated

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

rtnetlink: fix error logic of IFLABRIDGEFLAGS writing back

In the commit d73ef2d69c0d ("rtnetlink: let rtnlbridgesetlink checks IFLABRIDGEMODE length"), an adjustment was made to the old loop logic in the function rtnlbridgesetlink to enable the loop to also check the length of the IFLABRIDGEMODE attribute. However, this adjustment removed the break statement and led to an error logic of the flags writing back at the end of this function.

if (haveflags) memcpy(nladata(attr), &flags, sizeof(flags)); // attr should point to IFLABRIDGEFLAGS NLA !!!

Before the mentioned commit, the attr is granted to be IFLABRIDGEFLAGS. However, this is not necessarily true fow now as the updated loop will let the attr point to the last NLA, even an invalid NLA which could cause overflow writes.

This patch introduces a new variable brflag to save the NLA pointer that points to IFLABRIDGEFLAGS and uses it to resolve the mentioned error logic.

Other sources

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

rtnetlink: fix error logic of IFLABRIDGEFLAGS writing back

The Linux kernel CVE team has assigned CVE-2024-27414 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024051702-CVE-2024-27414-5c5d@gregkh/T

— Red Hat

Affected Software

26 affected componentsFixes available
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
redhat/kernel<5.4.271
5.4.271
redhat/kernel<5.10.212
5.10.212
redhat/kernel<5.15.151
5.15.151
redhat/kernel<6.1.81
6.1.81
redhat/kernel<6.6.21
6.6.21
redhat/kernel<6.7.9
6.7.9
redhat/kernel<6.8
6.8
Linux Linux kernel>=5.4.253<5.4.271
Linux Linux kernel>=5.10.190<5.10.212
Linux Linux kernel>=5.15.126<5.15.151
Linux Linux kernel>=6.1.45<6.1.81
Linux Linux kernel>=6.4.10<6.5
Linux Linux kernel>=6.5.1<6.6.21
Linux Linux kernel>=6.7<6.7.9
Linux Linux kernel=6.5
Linux Linux kernel=6.5-rc5
Linux Linux kernel=6.5-rc6
Linux Linux kernel=6.5-rc7
Linux Linux kernel=6.8-rc1
Linux Linux kernel=6.8-rc2
Linux Linux kernel=6.8-rc3
Linux Linux kernel=6.8-rc4
Linux Linux kernel=6.8-rc5
Linux Linux kernel=6.8-rc6
Debian Debian Linux=10.0

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
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.4.271
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.10.212
  4. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.15.151
  5. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.1.81
  6. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.6.21
  7. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.7.9
  8. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.8
  9. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Patch d73ef2d69c0d
  10. Compensating control

    Apply the fix for rtnetlink error logic of IFLA_BRIDGE_FLAGS writing back in the Linux kernel commit d73ef2d69c0d (CVE-2024-27414), which introduces br_flag to save the NLA pointer for IFLA_BRIDGE_FLAGS and prevents overflow/invalid NLA overwrite in rtnl_bridge_setlink.

Event History

May 17, 2024
CVE Published
via MITRE·11:50 AM
Data Sourced
via MITRE·11:50 AM
DescriptionSeverity
Data Sourced
via NVD·12:15 PM
Description
Data Sourced
via NVD·12:15 PM
RemedySeverityAffected Software
Data Sourced
via Red Hat·10:00 PM
DescriptionSeverityAffected Software
Jun 8, 2024
Data Sourced
via Launchpad·01:14 AM
Description
Apr 29, 2025
Data Sourced
via Ubuntu·06:17 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-27414?

CVE-2024-27414 has not been assigned a specific CVSS score, but it is classified as a vulnerability in the Linux kernel that could affect security mechanisms.

2

How do I fix CVE-2024-27414?

To resolve CVE-2024-27414, update your Linux kernel to version 5.4.271, 5.10.212, 5.15.151, 6.1.81, 6.6.21, 6.7.9, 6.8, or apply the appropriate patches provided by your distribution.

3

Which Linux kernel versions are affected by CVE-2024-27414?

CVE-2024-27414 affects various versions of the Linux kernel prior to the specified remedies including 5.4.271, 5.10.212, 5.15.151, and others listed in the patch notes.

4

What component of the Linux kernel is affected by CVE-2024-27414?

CVE-2024-27414 specifically concerns the rtnetlink component of the Linux kernel, particularly the logic of IFLA_BRIDGE_FLAGS.

5

Is CVE-2024-27414 exploitable remotely?

The details on remote exploitation potential for CVE-2024-27414 are not explicitly disclosed, but vulnerabilities in kernel components generally warrant caution.

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