CVE-2026-53236: tcp: restrict SO_ATTACH_FILTER to priv users
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
tcp: restrict SO_ATTACH_FILTER to priv users
This patch restricts the use of SO_ATTACH_FILTER (cBPF) on TCP sockets to users with CAP_NET_ADMIN capability.
This blocks potential side-channel attack where an unprivileged application attaches a filter to leak TCP sequence/acknowledgment numbers.
The Linux kernel CVE team has assigned CVE-2026-53236 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.176 with commit 3747de241a66ef2c7032d2cc2b826a47c5fa0f6a Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.143 with commit ecfe9171b26ae3eed0cd8bab7a943e9e2c9e51ba Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.94 with commit 82b3e7ce10c53fc12aab8904745603efc74f8c07 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.36 with commit ede69b8f6670600e534591664584f810d7c385f9 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.0.13 with commit c68517a3e18e20997808821c5559d0cba4d776c1 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.1 with commit 5d39580f68e6ddeedd15e587282207489dfb3da2
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-53236
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:
net/core/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/3747de241a66ef2c7032d2cc2b826a47c5fa0f6a https://git.kernel.org/stable/c/ecfe9171b26ae3eed0cd8bab7a943e9e2c9e51ba https://git.kernel.org/stable/c/82b3e7ce10c53fc12aab8904745603efc74f8c07 https://git.kernel.org/stable/c/ede69b8f6670600e534591664584f810d7c385f9 https://git.kernel.org/stable/c/c68517a3e18e20997808821c5559d0cba4d776c1 https://git.kernel.org/stable/c/5d39580f68e6ddeedd15e587282207489dfb3da2