Bug 2373571 (CVE-2022-49957) - CVE-2022-49957 kernel: kcm: fix strp_init() order and cleanup
Summary: CVE-2022-49957 kernel: kcm: fix strp_init() order and cleanup
Keywords:
Status: NEW
Alias: CVE-2022-49957
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:08 UTC by OSIDB Bzimport
Modified: 2025-06-23 11:12 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:08:49 UTC
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.

Comment 1 Avinash Hanwate 2025-06-19 10:47:47 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061812-CVE-2022-49957-8ff2@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.