CVE-2024-46858: mptcp: pm: Fix uaf in __timer_delete_sync

Published Sep 27, 2024
·
Updated

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

mptcp: pm: Fix uaf in timerdeletesync

There are two paths to access mptcppmdeladdtimer, result in a race condition:

CPU1 CPU2 ==== ==== netrxaction napipoll netlinksendmsg napipoll netlinkunicast processbacklog netlinkunicastkernel netifreceiveskb genlrcv netifreceiveskbonecore netlinkrcvskb NFHOOK genlrcvmsg iplocaldeliverfinish genlfamilyrcvmsg ipprotocoldeliverrcu genlfamilyrcvmsgdoit tcpv4rcv mptcppmnlflushaddrsdoit tcpv4dorcv mptcpnlremoveaddrslist tcprcvestablished mptcppmremoveaddrsandsubflows tcpdataqueue removeannolistbysaddr mptcpincomingoptions mptcppmdeladdtimer mptcppmdeladdtimer kfree(entry)

In removeannolistbysaddr(running on CPU2), after leaving the critical zone protected by "pm.lock", the entry will be released, which leads to the occurrence of uaf in the mptcppmdeladdtimer(running on CPU1).

Keeping a reference to addtimer inside the lock, and calling skstoptimersync() with this reference, instead of "entry->addtimer".

Move listdel(&entry->list) to mptcppmdeladdtimer and inside the pm lock, do not directly access any members of the entry outside the pm lock, which can avoid similar "entry->x" uaf.

Affected Software

14 affected componentsFixes available
Linux Linux kernel>=5.10<6.1.111
Linux Linux kernel>=6.2<6.6.52
Linux Linux kernel>=6.7<6.10.11
Linux Linux kernel=6.11-rc1
Linux Linux kernel=6.11-rc2
Linux Linux kernel=6.11-rc3
Linux Linux kernel=6.11-rc4
Linux Linux kernel=6.11-rc5
Linux Linux kernel=6.11-rc6
Linux Linux kernel=6.11-rc7
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
Microsoft azl3 kernel 6.6.56.1-5
Microsoft azl3 kernel 6.6.51.1-5

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

Sep 27, 2024
CVE Published
via MITRE·12:42 PM
Data Sourced
via MITRE·12:42 PM
DescriptionSeverity
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·01:23 PM
DescriptionSeverityAffected Software
Nov 9, 2024
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
DescriptionSeverity
May 1, 2025
Data Sourced
via Ubuntu·09:17 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-46858?

CVE-2024-46858 has a medium severity rating due to its potential for causing a use-after-free condition leading to denial of service.

2

How do I fix CVE-2024-46858?

To remediate CVE-2024-46858, upgrade to a patched version of the Linux Kernel such as 6.1.123-1 or later.

3

Which versions of the Linux Kernel are affected by CVE-2024-46858?

CVE-2024-46858 affects Linux Kernel versions from 5.10 to 6.11-rc7, excluding certain patched releases.

4

What components are involved in CVE-2024-46858?

CVE-2024-46858 involves the multipath TCP (MPTCP) implementation in the Linux Kernel.

5

Is CVE-2024-46858 a local or remote vulnerability?

CVE-2024-46858 is primarily a local vulnerability that may be exploited in specific environments under certain conditions.

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