CVE-2026-98274: net: psp: avoid conflicts with skb->decrypted and sk_validate_xmit_skb()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: psp: avoid conflicts with skb->decrypted and sk_validate_xmit_skb()
PSP conflicts with TLS ULP in its usage of both skb->decrypted and sk->sk_validate_xmit_skb().
Make PSP mutually exclusive with TLS ULP, the only other user of either of these. As other users of skb->decrypted come along, they can be added to sk_has_decrypt_user(). It would make sense to also assert that sk->sk_validate_xmit_skb() is also NULL in both of these setup paths for similar future proofing, but the PSP listener/sk_clone() path is still broken and it could be seen as a regression to not allow rx assoc to run on a child of a listener socket with PSP tx assoc state.
Include all TCP ULPs in the sk_has_decrypt_user() check, even though TLS is the only one that conflicts with PSP via the decrypted bit. This is intentional because PSP was not designed to be used with ULPs. It is best to close off surface area that may make bugs reachable, until someone wishes to design and test an actual user of PSP with ULPs.
The Linux kernel CVE team has assigned CVE-2026-98274 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18 with commit 6b46ca260e2290e3453d1355ab5b6d283d73d780 and fixed in 6.18.54 with commit a13cca5ba5375f13cbdab545abfb5e288bef3f78 Issue introduced in 6.18 with commit 6b46ca260e2290e3453d1355ab5b6d283d73d780 and fixed in 7.2.8 with commit c8c8c18862337c469e325c207601de3279847809 Issue introduced in 6.18 with commit 6b46ca260e2290e3453d1355ab5b6d283d73d780 and fixed in 7.3-rc4 with commit a41f24c612c3f5139a3143307eb85bbcf1bd4d07
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98274
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
include/net/sock.h net/core/sock.c net/ipv4/tcp_ulp.c net/psp/psp_sock.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/a13cca5ba5375f13cbdab545abfb5e288bef3f78 https://git.kernel.org/stable/c/c8c8c18862337c469e325c207601de3279847809 https://git.kernel.org/stable/c/a41f24c612c3f5139a3143307eb85bbcf1bd4d07