CVE-2024-26615: net/smc: fix illegal rmb_desc access in SMC-D connection dump
In the Linux kernel, the following vulnerability has been resolved:
net/smc: fix illegal rmbdesc access in SMC-D connection dump
A crash was found when dumping SMC-D connections. It can be reproduced by following steps:
- run nginx/wrk test: smcrun nginx smcrun wrk -t 16 -c 1000 -d <duration> -H 'Connection: Close' <URL>
- continuously dump SMC-D connections in parallel: watch -n 1 'smcss -D'
BUG: kernel NULL pointer dereference, address: 0000000000000030 CPU: 2 PID: 7204 Comm: smcss Kdump: loaded Tainted: G E 6.7.0+ #55 RIP: 0010:smcdiagdump.constprop.0+0x5e5/0x620 [smcdiag] Call Trace: <TASK> ? die+0x24/0x70 ? pagefaultoops+0x66/0x150 ? excpagefault+0x69/0x140 ? asmexcpagefault+0x26/0x30 ? smcdiagdump.constprop.0+0x5e5/0x620 [smcdiag] ? kmallocnodetrackcaller+0x35d/0x430 ? allocskb+0x77/0x170 smcdiagdumpproto+0xd0/0xf0 [smcdiag] smcdiagdump+0x26/0x60 [smcdiag] netlinkdump+0x19f/0x320 netlinkdumpstart+0x1dc/0x300 smcdiaghandlerdump+0x6a/0x80 [smcdiag] ? pfxsmcdiagdump+0x10/0x10 [smcdiag] sockdiagrcvmsg+0x121/0x140 ? pfxsockdiagrcvmsg+0x10/0x10 netlinkrcvskb+0x5a/0x110 sockdiagrcv+0x28/0x40 netlinkunicast+0x22a/0x330 netlinksendmsg+0x1f8/0x420 socksendmsg+0xb0/0xc0 syssendmsg+0x24e/0x300 ? copymsghdrfromuser+0x62/0x80 syssendmsg+0x7c/0xd0 ? dofault+0x34/0x160 ? doreadfault+0x5f/0x100 ? dofault+0xb0/0x110 ? handlemmfault+0x2b0/0x6c0 syssendmsg+0x4d/0x80 dosyscall64+0x69/0x180 entrySYSCALL64afterhwframe+0x6e/0x76
It is possible that the connection is in process of being established when we dump it. Assumed that the connection has been registered in a link group by smcconncreate() but the rmbdesc has not yet been initialized by smcbufcreate(), thus causing the illegal access to conn->rmbdesc. So fix it by checking before dump.
Other sources
In the Linux kernel, the following vulnerability has been resolved:
net/smc: fix illegal rmbdesc access in SMC-D connection dump
The Linux kernel CVE team has assigned CVE-2024-26615 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/20240229155245.1571576-47-lee@kernel.org/T/#u
— Red Hat
Linux Kernel is vulnerable to a denial of service, caused by illegal rmbdesc access in SMC-D connection dump. A local attacker could exploit this vulnerability to cause a denial of service.
— IBM
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-26615?
CVE-2024-26615 is considered a high severity vulnerability due to the potential for system crashes when dumping SMC-D connections.
How do I fix CVE-2024-26615?
To fix CVE-2024-26615, update your Linux kernel to versions 4.19.307, 5.4.269, 5.10.210, 5.15.149, 6.1.76, 6.6.15, or 6.8.
Which Linux kernel versions are affected by CVE-2024-26615?
CVE-2024-26615 affects multiple Linux kernel versions, including those before 4.19.307, 5.4.269, 5.10.210, 5.15.149, 6.1.76, and 6.6.15.
What component of the Linux kernel is impacted by CVE-2024-26615?
CVE-2024-26615 impacts the net/smc component related to SMC-D connection dumping.
Can CVE-2024-26615 lead to denial of service?
Yes, CVE-2024-26615 can result in a denial of service condition due to crashes caused during SMC-D connection dumps.