Skip to main content
← All vulnerabilities
CVE-2022-49957

kcm: fix strp_init() order and cleanup

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.14.293, 4.10
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 4.14.22 · fixed in 4.14.293; From 4.9.84 · fixed in 4.10; From 4.9.100 · fixed in 4.10

  • Linux Linux

    4.15

References 7

git.kernel.org