CVE-2022-49957

kcm: fix strp_init() order and cleanup

MEDIUM
5.5
CVSS Score
Published: June 18, 2025 at 11:00 AM UTC
Updated: June 17, 2026 at 05:19 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%

Description

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 4.9.100v ≥ 4.9.844.14.22 ≤ v < 4.14.2934.14.41 ≤ v < 4.154.15 ≤ v < 4.19.2584.15 ≤ v < 5.10.1424.15 ≤ v < 5.15.664.15 ≤ v < 5.19.84.15 ≤ v < 5.4.2134.15 ≤ v < 6.04.15.1 ≤ v < 4.19.2584.20 ≤ v < 5.4.2134.9.100 ≤ v < 4.104.9.84 ≤ v < 4.105.11 ≤ v < 5.15.665.16 ≤ v < 5.19.85.5 ≤ v < 5.10.14219042316b9e12c93bf334a04d4dd7a4e846c7311383250363daf01eb7aa3728c09ef8a4f6d8a32524.14.224.154.9.1004.9.8444890e9ff771ef11777b2d1ebf8589255eb125026.0 rc16.0 rc26.0 rc385cbbda4b4cc7dd2ba63806346881c2c2e10107e5571240236c5652f3e079b1d5866716a7ad819c
Vendor states this is fixed in 0946ff31d1a8778787bf6708beb20f38715267cc (fixed)
Vendor states this is fixed in 1b6666964ca1de93a7bf06e122bcf3616dbd33a9 (fixed)
Vendor states this is fixed in 473f394953216614087f4179e55cdf0cf616a13b (fixed)
Vendor states this is fixed in 55fb8c3baa8071c5d533a9ad48624e44e2a04ef5 (fixed)
Vendor states this is fixed in 8fc29ff3910f3af08a7c40a75d436b5720efe2bf (fixed)
Vendor states this is fixed in a8a0c321319ad64a5427d6172cd9c23b4d6ca1e8 (fixed)
Vendor states this is fixed in f865976baa85915c7672f351b74d5974b93215f6 (fixed)
Affected range stops below 4.10, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 4.14.293 (unaffected)
Vendor states this is fixed in 4.15 (unaffected)
Vendor states this is fixed in 4.19.258 (unaffected)
Vendor states this is fixed in 5.10.142 (unaffected)
Vendor states this is fixed in 5.15.66 (unaffected)
Vendor states this is fixed in 5.19.8 (unaffected)
Vendor states this is fixed in 5.4.213 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0946ff31d1a8778787bf6708beb20f38715267cc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1b6666964ca1de93a7bf06e122bcf3616dbd33a9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/473f394953216614087f4179e55cdf0cf616a13b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/55fb8c3baa8071c5d533a9ad48624e44e2a04ef5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8fc29ff3910f3af08a7c40a75d436b5720efe2bf
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a8a0c321319ad64a5427d6172cd9c23b4d6ca1e8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f865976baa85915c7672f351b74d5974b93215f6

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-908

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card