CVE-2022-49957
published 2025-06-18CVE-2022-49957: In the Linux kernel, the following vulnerability has been resolved: kcm: fix strp_init() order and cleanup strp_init() is called just a few lines above this…
PriorityP418medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.22%
12.6th percentile
In the Linux kernel, the following vulnerability has been resolved:
kcm: fix strp_init() order and cleanup
strp_init() is called just a few lines above this csk->sk_user_data
check, it also initializes strp->work etc., therefore, it is
unnecessary to call strp_done() to cancel the freshly initialized
work.
And if sk_user_data is already used by KCM, psock->strp should not be
touched, particularly strp->work state, so we need to move strp_init()
after the csk->sk_user_data check.
This also makes a lockdep warning reported by syzbot go away.
Affected
30 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 6.0.2-1 (bookworm) | linux 6.0.2-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | — | — |
| linux | linux | — | — |
| linux | linux | — | — |
| linux | linux | >= 4.14.22 < 4.14.293 | 4.14.293 |
| linux | linux | >= 4.9.100 < 4.10 | 4.10 |
| linux | linux | >= 4.9.84 < 4.10 | 4.10 |
| linux | linux | >= 44890e9ff771ef11777b2d1ebf8589255eb12502 < 473f394953216614087f4179e55cdf0cf616a13b | 473f394953216614087f4179e55cdf0cf616a13b |
| linux | linux | >= e5571240236c5652f3e079b1d5866716a7ad819c < a8a0c321319ad64a5427d6172cd9c23b4d6ca1e8 | a8a0c321319ad64a5427d6172cd9c23b4d6ca1e8 |
| linux | linux | >= e5571240236c5652f3e079b1d5866716a7ad819c < 0946ff31d1a8778787bf6708beb20f38715267cc | 0946ff31d1a8778787bf6708beb20f38715267cc |
| linux | linux | >= e5571240236c5652f3e079b1d5866716a7ad819c < 1b6666964ca1de93a7bf06e122bcf3616dbd33a9 | 1b6666964ca1de93a7bf06e122bcf3616dbd33a9 |
| linux | linux | >= e5571240236c5652f3e079b1d5866716a7ad819c < 55fb8c3baa8071c5d533a9ad48624e44e2a04ef5 | 55fb8c3baa8071c5d533a9ad48624e44e2a04ef5 |
| linux | linux | >= e5571240236c5652f3e079b1d5866716a7ad819c < f865976baa85915c7672f351b74d5974b93215f6 | f865976baa85915c7672f351b74d5974b93215f6 |
| linux | linux | >= e5571240236c5652f3e079b1d5866716a7ad819c < 8fc29ff3910f3af08a7c40a75d436b5720efe2bf | 8fc29ff3910f3af08a7c40a75d436b5720efe2bf |
| linux | linux_kernel | — | — |
| linux | linux_kernel | — | — |
| linux | linux_kernel | >= 0 < 5.10.148-1 | 5.10.148-1 |
| linux | linux_kernel | >= 0 < 6.0.2-1 | 6.0.2-1 |
| linux | linux_kernel | >= 0 < 6.0.2-1 | 6.0.2-1 |
| linux | linux_kernel | >= 0 < 6.0.2-1 | 6.0.2-1 |
| linux | linux_kernel | >= 4.14.22 < 4.14.293 | 4.14.293 |
| linux | linux_kernel | >= 4.14.41 < 4.15 | 4.15 |
| linux | linux_kernel | >= 4.15.1 < 4.19.258 | 4.19.258 |
| linux | linux_kernel | >= 4.20 < 5.4.213 | 5.4.213 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
CVE-2022-49957: In the Linux kernel, the following vulnerability has been resolved: kcm: fix strp_init() order and cleanup strp_init() is called just a few lines abov
osv·2025-06-18·CVSS 5.5
CVE-2022-49957 [MEDIUM] CVE-2022-49957: In the Linux kernel, the following vulnerability has been resolved: kcm: fix strp_init() order and cleanup strp_init() is called just a few lines abov
In the Linux kernel, the following vulnerability has been resolved: kcm: fix strp_init() order and cleanup strp_init() is called just a few lines above this csk->sk_user_data check, it also initializes strp->work etc., therefore, it is unnecessary to call strp_done() to cancel the freshly initialized work. And if sk_user_data is already used by KCM, psock->strp should not be touched, particularly strp->work state, so we need to move strp_init() after the csk->sk_user_data check. This also makes a lockdep warning reported by syzbot go away.
GHSA
GHSA-cp59-hf68-p4rg: In the Linux kernel, the following vulnerability has been resolved:
kcm: fix strp_init() order and cleanup
strp_init() is called just a few lines ab
ghsa_unreviewed·2025-06-18
CVE-2022-49957 [MEDIUM] CWE-908 GHSA-cp59-hf68-p4rg: In the Linux kernel, the following vulnerability has been resolved:
kcm: fix strp_init() order and cleanup
strp_init() is called just a few lines ab
In the Linux kernel, the following vulnerability has been resolved:
kcm: fix strp_init() order and cleanup
strp_init() is called just a few lines above this csk->sk_user_data
check, it also initializes strp->work etc., therefore, it is
unnecessary to call strp_done() to cancel the freshly initialized
work.
And if sk_user_data is already used by KCM, psock->strp should not be
touched, particularly strp->work state, so we need to move strp_init()
after the csk->sk_user_data check.
This also makes a lockdep warning reported by syzbot go away.
Red Hat
kernel: kcm: fix strp_init() order and cleanup
vendor_redhat·2025-06-18·CVSS 5.5
CVE-2022-49957 [MEDIUM] kernel: kcm: fix strp_init() order and cleanup
kernel: kcm: fix strp_init() order and cleanup
In the Linux kernel, the following vulnerability has been resolved:
kcm: fix strp_init() order and cleanup
strp_init() is called just a few lines above this csk->sk_user_data
check, it also initializes strp->work etc., therefore, it is
unnecessary to call strp_done() to cancel the freshly initialized
work.
And if sk_user_data is already used by KCM, psock->strp should not be
touched, particularly strp->work state, so we need to move strp_init()
after the csk->sk_user_data check.
This also makes a lockdep warning reported by syzbot go away.
Package: kernel (Red Hat Enterprise Linux 10) - Not affected
Package: kernel (Red Hat Enterprise Linux 6) - Not affected
Package: kernel (Red Hat Enterprise Linux 7) - Not affected
Package: kernel-rt (R
Debian
CVE-2022-49957: linux - In the Linux kernel, the following vulnerability has been resolved: kcm: fix st...
vendor_debian·2022·CVSS 5.5
CVE-2022-49957 [MEDIUM] CVE-2022-49957: linux - In the Linux kernel, the following vulnerability has been resolved: kcm: fix st...
In the Linux kernel, the following vulnerability has been resolved: kcm: fix strp_init() order and cleanup strp_init() is called just a few lines above this csk->sk_user_data check, it also initializes strp->work etc., therefore, it is unnecessary to call strp_done() to cancel the freshly initialized work. And if sk_user_data is already used by KCM, psock->strp should not be touched, particularly strp->work state, so we need to move strp_init() after the csk->sk_user_data check. This also makes a lockdep warning reported by syzbot go away.
Scope: local
bookworm: resolved (fixed in 6.0.2-1)
bullseye: resolved (fixed in 5.10.148-1)
forky: resolved (fixed in 6.0.2-1)
sid: resolved (fixed in 6.0.2-1)
trixie: resolved (fixed in 6.0.2-1)
No detection rules found.
No public exploits indexed.
https://git.kernel.org/stable/c/0946ff31d1a8778787bf6708beb20f38715267cchttps://git.kernel.org/stable/c/1b6666964ca1de93a7bf06e122bcf3616dbd33a9https://git.kernel.org/stable/c/473f394953216614087f4179e55cdf0cf616a13bhttps://git.kernel.org/stable/c/55fb8c3baa8071c5d533a9ad48624e44e2a04ef5https://git.kernel.org/stable/c/8fc29ff3910f3af08a7c40a75d436b5720efe2bfhttps://git.kernel.org/stable/c/a8a0c321319ad64a5427d6172cd9c23b4d6ca1e8https://git.kernel.org/stable/c/f865976baa85915c7672f351b74d5974b93215f6
2025-06-18
Published