5.5

CVE-2022-49957

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.
Daten sind bereitgestellt durch National Vulnerability Database (NVD)
LinuxLinux Kernel Version >= 4.9.84 < 4.10
LinuxLinux Kernel Version >= 4.9.100 < 4.10
LinuxLinux Kernel Version >= 4.14.22 < 4.14.293
LinuxLinux Kernel Version >= 4.14.41 < 4.15
LinuxLinux Kernel Version >= 4.15.1 < 4.19.258
LinuxLinux Kernel Version >= 4.20 < 5.4.213
LinuxLinux Kernel Version >= 5.5 < 5.10.142
LinuxLinux Kernel Version >= 5.11 < 5.15.66
LinuxLinux Kernel Version >= 5.16 < 5.19.8
LinuxLinux Kernel Version4.15 Update-
LinuxLinux Kernel Version6.0 Updaterc1
LinuxLinux Kernel Version6.0 Updaterc2
LinuxLinux Kernel Version6.0 Updaterc3
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.22% 0.126
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
nvd@nist.gov 5.5 1.8 3.6
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-908 Use of Uninitialized Resource

The product uses or accesses a resource that has not been initialized.

https://git.kernel.org/stable/c/473f394953216614087f4179e55cdf0cf616a13b
Patch
https://git.kernel.org/stable/c/a8a0c321319ad64a5427d6172cd9c23b4d6ca1e8
Patch
https://git.kernel.org/stable/c/0946ff31d1a8778787bf6708beb20f38715267cc
Patch
https://git.kernel.org/stable/c/1b6666964ca1de93a7bf06e122bcf3616dbd33a9
Patch
https://git.kernel.org/stable/c/55fb8c3baa8071c5d533a9ad48624e44e2a04ef5
Patch
https://git.kernel.org/stable/c/f865976baa85915c7672f351b74d5974b93215f6
Patch
https://git.kernel.org/stable/c/8fc29ff3910f3af08a7c40a75d436b5720efe2bf
Patch