CVE-2022-48751
kernel: net/smc: Transitional solution for clcsock race issue
Overview
Description
In the Linux kernel, the following vulnerability has been resolved:
net/smc: Transitional solution for clcsock race issue
We encountered a crash in smc_setsockopt() and it is caused by
accessing smc->clcsock after clcsock was released.
BUG: kernel NULL pointer dereference, address: 0000000000000020
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 0 P4D 0
Oops: 0000 [#1] PREEMPT SMP PTI
CPU: 1 PID: 50309 Comm: nginx Kdump: loaded Tainted: G E 5.16.0-rc4+ #53
RIP: 0010:smc_setsockopt+0x59/0x280 [smc]
Call Trace:
<TASK>
__sys_setsockopt+0xfc/0x190
__x64_sys_setsockopt+0x20/0x30
do_syscall_64+0x34/0x90
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f16ba83918e
</TASK>
This patch tries to fix it by holding clcsock_release_lock and
checking whether clcsock has already been released before access.
In case that a crash of the same reason happens in smc_getsockopt()
or smc_switch_to_fallback(), this patch also checkes smc->clcsock
in them too. And the caller of smc_switch_to_fallback() will identify
whether fallback succeeds according to the return value.
Source: OX vulnerability database
Severity
4.7 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-476
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 37 fixes
Red Hat 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | bpftool +45 | wont fix |
| 9 | bpftool +106 | affected |
SUSE Linux Enterprise 3 releases · 9 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | kgraft-patch-4-12-14-122-228-default | 1-8.3.1 | SUSE-SU-2024:3251-1 |
| 12.5 | cluster-md-kmp-rt +11 | 4.12.14-10.200.1 | SUSE-SU-2024:3189-1 |
| 12.5 | cluster-md-kmp-default +14 | 4.12.14-122.228.1 | SUSE-SU-2024:3251-1 |
| 12.5 | kernel-docs +1 | 4.12.14-122.228.2 | SUSE-SU-2024:3251-1 |
| 12.5 | kernel-azure +5 | 4.12.14-16.197.1 | SUSE-SU-2024:3252-1 |
| 15.4 | kernel-livepatch-5-14-21-150400-24-128-default | 1-150400.9.3.1 | SUSE-SU-2024:2929-1 |
8 more rows
SUSE Linux Enterprise Micro 3 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.3 | kernel-rt +1 | 5.14.21-150400.15.88.1 | SUSE-SU-2024:2902-1 |
| 5.3 | kernel-default | 5.14.21-150400.24.128.1 | SUSE-SU-2024:2929-1 |
| 5.3 | kernel-default-base | 5.14.21-150400.24.128.1.150400.24.62.1 | SUSE-SU-2024:2929-1 |
| 5.4 | kernel-rt +1 | 5.14.21-150400.15.88.1 | SUSE-SU-2024:2902-1 |
| 5.4 | kernel-default | 5.14.21-150400.24.128.1 | SUSE-SU-2024:2929-1 |
| 5.4 | kernel-default-base | 5.14.21-150400.24.128.1.150400.24.62.1 | SUSE-SU-2024:2929-1 |
3 more rows
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux | affected |
| 12 | linux | 5.16.7-1 |
| 13 | linux | 5.16.7-1 |
| 14 | linux | 5.16.7-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| linux | 5.16.7-1 |
openSUSE Leap Micro 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.5 | kernel-default | 5.14.21-150500.55.73.1 | SUSE-SU-2024:2939-1 |
| 5.5 | kernel-default-base | 5.14.21-150500.55.73.1.150500.6.33.8 | SUSE-SU-2024:2939-1 |
root.io debian 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux +1 | 5.10.251-5.root.io.85 |
| 12 | rootio-linux | 5.16.7-1 |
| 13 | rootio-linux | 5.16.7-1 |
ubuntu 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | linux-aws-5-4 +6 | affected |
| 20.04-ESM | linux +10 | affected |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-48751
- git.kernel.org https://git.kernel.org/linus/c0bf3d8a943b6f2e912b7c1de03e2ef28e76f760 (5.17-rc2)
- git.kernel.org https://git.kernel.org/stable/c/38f0bdd548fd2ef5d481b88d8a2bfef968452e34
- git.kernel.org https://git.kernel.org/stable/c/4284225cd8001e134f5cf533a7cd244bbb654d0f
- git.kernel.org https://git.kernel.org/stable/c/c0bf3d8a943b6f2e912b7c1de03e2ef28e76f760
- lore.kernel.org https://lore.kernel.org/linux-cve-announce/2024062005-CVE-2022-48751-10d0@gregkh/T
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-48751
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-48751
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.