CVE-2022-49957

kcm: fix strp_init() order and cleanup

published June 18, 2025

CVSS
—
EPSS
0%
Percentile
18.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00268 · 18.0th percentile
Published
2025-06-18T11:00Z
EPSS history
Timeline
  • 18 JUN 11:00Z
    kcm: fix strp_init() order and cleanup
    cvelistv5