Description
In the Linux kernel, the following vulnerability has been resolved: tls: reject the combination of TLS and sockmap TLS and sockmap (BPF psock) integration hides a lot of latent bugs. Bugs which may be more or less relevant for real users but they are definitely exploitable. We could not find anyone actively using this integration so let's reject this config. Adding a TLS socket to a sockmap was already rejected by sk_psock_init() through the inet_csk_has_ulp() check. We need to reject the attempts to configure the TLS keys (rather than adding the ULP itself) because checking prior to the ULP installation is tricky without risking a race with sockmap getting added in parallel (sockmap does not hold the socket lock). This patch is a minimal rejection of the feature. Subsequent patch in the series will do a light dead code removal. Full cleanup would require a major rewrite of the Tx path, we don't need skmsg any more.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
d3b18ad31f93d0b6bae105c679018a1ba7daa9ca to < c4896592744f30ff026f799947c5978bcfd7c8c7affectedd3b18ad31f93d0b6bae105c679018a1ba7daa9ca to < e26aa709454d48c3b3ef8d3100c8a04e7d9fd94eaffectedd3b18ad31f93d0b6bae105c679018a1ba7daa9ca to < c3d4d537337f69e405a36fa561e7292ee4148bf7affectedd3b18ad31f93d0b6bae105c679018a1ba7daa9ca to < a08e780b6cc1153cbff8be55de9ec9da809e344faffectedd3b18ad31f93d0b6bae105c679018a1ba7daa9ca to < 460e6486617c17dd19abe8f3fc67d9a6fa25f8caaffected
Linux Linux
Default version status: affected
4.20affected0 to < 4.20unaffected6.1.189 to ≤ 6.1.*unaffected6.6.158 to ≤ 6.6.*unaffected6.12.111 to ≤ 6.12.*unaffected6.18.53 to ≤ 6.18.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/c4896592744f30ff026f799947c5978bcfd7c8c7 ↗
- https://git.kernel.org/stable/c/e26aa709454d48c3b3ef8d3100c8a04e7d9fd94e ↗
- https://git.kernel.org/stable/c/c3d4d537337f69e405a36fa561e7292ee4148bf7 ↗
- https://git.kernel.org/stable/c/a08e780b6cc1153cbff8be55de9ec9da809e344f ↗
- https://git.kernel.org/stable/c/460e6486617c17dd19abe8f3fc67d9a6fa25f8ca ↗