# CVE-2022-49732: sock: redo the psock vs ULP protection check

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-02-26T14:57:24.827Z
- Modified: 2026-06-17T05:18:59.767Z
- Assigned by: Linux

## Description

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

sock: redo the psock vs ULP protection check

Commit 8a59f9d1e3d4 ("sock: Introduce sk->sk_prot->psock_update_sk_prot()")
has moved the inet_csk_has_ulp(sk) check from sk_psock_init() to
the new tcp_bpf_update_proto() function. I'm guessing that this
was done to allow creating psocks for non-inet sockets.

Unfortunately the destruction path for psock includes the ULP
unwind, so we need to fail the sk_psock_init() itself.
Otherwise if ULP is already present we'll notice that later,
and call tcp_update_ulp() with the sk_proto of the ULP
itself, which will most likely result in the ULP looping
its callbacks.

(As written by CVE List.)

## Affected

- Linux Linux: from 8a59f9d1e3d4340659fdfee8879dc09a6f2546e1 before 72fa0f65b56605b8a9ae9fba2082f2123f7fe017; from 8a59f9d1e3d4340659fdfee8879dc09a6f2546e1 before 922309e50befb0cfa5cb65e4989b7706d6578846; from 8a59f9d1e3d4340659fdfee8879dc09a6f2546e1 before e34a07c0ae3906f97eb18df50902e2a01c1015b6; 5.13 (not affected: before 5.13; from 5.15.51 up to 5.15.*; from 5.18.8 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 5.13 before 5.15.51; from 5.16 before 5.18.8; 5.19

## References

- <https://git.kernel.org/stable/c/72fa0f65b56605b8a9ae9fba2082f2123f7fe017> (patch)
- <https://git.kernel.org/stable/c/922309e50befb0cfa5cb65e4989b7706d6578846> (patch)
- <https://git.kernel.org/stable/c/e34a07c0ae3906f97eb18df50902e2a01c1015b6> (patch)

## Sources

- CVE List: [CVE-2022-49732](https://www.cve.org/CVERecord?id=CVE-2022-49732), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49732](https://nvd.nist.gov/vuln/detail/CVE-2022-49732), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49732 · Whole record: https://cve.day/CVE-2022-49732.json · Rebuilt by cve.day 2026-11-25T22:58:20.832Z
