In the Linux kernel, the following vulnerability has been resolved:
mptcp: init: protect sched with rcureadlock
Enabling CONFIGPROVERCULIST with its dependence CONFIGRCU_EXPERT creates this splat when an MPTCP socket is created:
============================= WARNING: suspicious RCU usage 6.12.0-rc2+ #11 Not tainted
net/mptcp/sched.c:44 RCU-list traversed in non-reader section!!
other info that might help us debug this:
rcuscheduleractive = 2, debuglocks = 1 no locks held by mptcpconnect/176.
stack backtrace: CPU: 0 UID: 0 PID: 176 Comm: mptcpconnect Not tainted 6.12.0-rc2+ #11 Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 Call Trace: <TASK> dumpstacklvl (lib/dumpstack.c:123) lockdeprcususpicious (kernel/locking/lockdep.c:6822) mptcpschedfind (net/mptcp/sched.c:44 (discriminator 7)) mptcpinitsock (net/mptcp/protocol.c:2867 (discriminator 1)) ? sockinitdatauid (arch/x86/include/asm/atomic.h:28) inetcreate.part.0.constprop.0 (net/ipv4/afinet.c:386) ? sockcreate (include/linux/rcupdate.h:347 (discriminator 1)) _sockcreate (net/socket.c:1576) _syssocket (net/socket.c:1671) ? _pfxsyssocket (net/socket.c:1712) ? douseraddrfault (arch/x86/mm/fault.c:1419 (discriminator 1)) _x64syssocket (net/socket.c:1728) dosyscall64 (arch/x86/entry/common.c:52 (discriminator 1)) entrySYSCALL64afterhwframe (arch/x86/entry/entry64.S:130)
That's because when the socket is initialised, rcureadlock() is not used despite the explicit comment written above the declaration of mptcpschedfind() in sched.c. Adding the missing lock/unlock avoids the warning.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3deb12c788c385e17142ce6ec50f769852fcec65",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2024-53047-52316202",
"target": {
"function": "mptcp_init_sock",
"file": "net/mptcp/protocol.c"
},
"digest": {
"length": 612.0,
"function_hash": "311269839435406861961327516961532262936"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@494eb22f9a7bd03783e60595a57611c209175f1a",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2024-53047-5958b400",
"target": {
"function": "mptcp_init_sock",
"file": "net/mptcp/protocol.c"
},
"digest": {
"length": 612.0,
"function_hash": "311269839435406861961327516961532262936"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cb8b81ad3e893a6d18dcdd3754cc2ea2a42c0136",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2024-53047-66b1b3b3",
"target": {
"file": "net/mptcp/protocol.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"225821556272796429624282250774036010950",
"32520034801325997212874400039947072938",
"226403108056307504817190254434299916689",
"239007585215820818360037690168276655542",
"100117098815474422568231464619055308575"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3deb12c788c385e17142ce6ec50f769852fcec65",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2024-53047-96bd1557",
"target": {
"file": "net/mptcp/protocol.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"225821556272796429624282250774036010950",
"32520034801325997212874400039947072938",
"226403108056307504817190254434299916689",
"239007585215820818360037690168276655542",
"100117098815474422568231464619055308575"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cb8b81ad3e893a6d18dcdd3754cc2ea2a42c0136",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2024-53047-96ff958d",
"target": {
"function": "mptcp_init_sock",
"file": "net/mptcp/protocol.c"
},
"digest": {
"length": 612.0,
"function_hash": "311269839435406861961327516961532262936"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@494eb22f9a7bd03783e60595a57611c209175f1a",
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2024-53047-bbe2a16f",
"target": {
"file": "net/mptcp/protocol.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"225821556272796429624282250774036010950",
"32520034801325997212874400039947072938",
"226403108056307504817190254434299916689",
"239007585215820818360037690168276655542",
"100117098815474422568231464619055308575"
]
},
"signature_type": "Line"
}
]