CVE-2024-50036: net: do not delay dst_entries_add() in dst_release()

Published Oct 21, 2024
·
Updated

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

net: do not delay dstentriesadd() in dstrelease()

dstentriesadd() uses per-cpu data that might be freed at netns dismantle from ip6routenetexit() calling dstentriesdestroy()

Before ip6routenetexit() can be called, we release all the dsts associated with this netns, via calls to dstrelease(), which waits an rcu grace period before calling dstdestroy()

dstentriesadd() use in dstdestroy() is racy, because dstentriesdestroy() could have been called already.

Decrementing the number of dsts must happen sooner.

Notes:

1) in CONFIGXFRM case, dstdestroy() can call dstreleaseimmediate(child), this might also cause UAF if the child does not have DSTNOCOUNT set. IPSEC maintainers might take a look and see how to address this.

2) There is also discussion about removing this count of dst, which might happen in future kernels.

Other sources

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Affected Software

10 affected componentsFixes available
Linux Linux kernel>=3.10.50<3.11
Linux Linux kernel>=3.12.26<3.13
Linux Linux kernel>=3.14.14<3.15
Linux Linux kernel>=3.15.7<3.16
Linux Linux kernel>=3.16<6.6.57
Linux Linux kernel>=6.7<6.11.4
Linux Linux kernel=6.12-rc1
Linux Linux kernel=6.12-rc2
debian/linux<=5.10.223-1
5.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
debian/linux-6.1
6.1.129-1~deb11u1

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.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 debian/linux-6.1 to a version that resolves this vulnerability.

    Fixed in 6.1.129-1~deb11u1

Event History

Oct 21, 2024
CVE Published
via MITRE·07:39 PM
Data Sourced
via MITRE·07:39 PM
DescriptionSeverity
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityAffected Software
Feb 20, 2025
Data Sourced
via Launchpad·12:47 AM
Description
Apr 29, 2025
Data Sourced
via Ubuntu·01:03 AM
RemedyDescriptionSeverityAffected Software
Jan 7, 58561
Event
via MITRE·08:32 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-50036?

CVE-2024-50036 has a severity rating that may vary based on the specific version of the Linux kernel affected.

2

How do I fix CVE-2024-50036?

To fix CVE-2024-50036, you should upgrade the Linux kernel to a version that has applied the relevant security patches.

3

Which versions of the Linux kernel are affected by CVE-2024-50036?

CVE-2024-50036 affects multiple versions of the Linux kernel, including versions 3.10.50 to 3.11, 3.12.26 to 3.13, and several others up to versions 6.12-rc2.

4

Is CVE-2024-50036 a remote vulnerability?

CVE-2024-50036 can potentially be exploited remotely depending on the specific network configurations and kernel version in use.

5

What type of vulnerability is CVE-2024-50036?

CVE-2024-50036 is related to a memory handling issue in the Linux kernel that involves the management of destination entries.

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