CVE-2022-49957

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49957
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49957.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49957
Downstream
Related
Published
2025-06-18T11:15:22Z
Modified
2025-08-09T20:01:26Z
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

kcm: fix strp_init() order and cleanup

strpinit() is called just a few lines above this csk->skuserdata check, it also initializes strp->work etc., therefore, it is unnecessary to call strpdone() to cancel the freshly initialized work.

And if skuserdata is already used by KCM, psock->strp should not be touched, particularly strp->work state, so we need to move strpinit() after the csk->skuser_data check.

This also makes a lockdep warning reported by syzbot go away.

References

Affected packages