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

Medium 5.5 Published Updated

A logic error in Linux kernel socket handling allows ULP callbacks to loop, potentially causing a denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-49732?

CVE-2022-49732 is a medium-severity vulnerability in Linux kernel, published on 26 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2022-49732?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49732?

Apply the vendor's patch.

Is CVE-2022-49732 being exploited?

There is no known exploitation of CVE-2022-49732 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49732, GHSA-rvx3-cxvh-j465, UBUNTU-CVE-2022-49732.

Is CVE-2022-49732 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free