PT-2026-166633

CVE-2026-142896

·

Published

2026-12-03

·

Updated

2026-12-03

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
tls: avoid field-spanning write when copying crypto info
do tls setsockopt conf() copies the cipher-specific part of the crypto info to crypto info + 1, where crypto info points at the 4-byte info member of union tls crypto context. When optval is a kernel sockptr, copy from sockptr offset() is a memcpy(), and FORTIFY SOURCE bounds the destination by that member:
[ 6.948348] memcpy: detected field-spanning write (size 52) of single field "dst" at include/linux/sockptr.h:49 (size 0) [ 6.948480] WARNING: include/linux/sockptr.h:49 at tls setsockopt+0x9b2/0xa30, CPU#1: init/1 [ 7.001355] Call Trace: [ 7.003146] do sock setsockopt+0xb0/0x190 [ 7.003975] sys setsockopt+0x76/0xc0 [ 7.005368] do syscall 64+0xda/0x4b0
tls setsockopt() gets a kernel sockptr whenever a cgroup setsockopt BPF program is attached, even one that leaves the option alone, because cgroup bpf run filter setsockopt() passes optval on in a kernel buffer. With a no-op program on the root cgroup, a plain TLS TX setsockopt() with AES-GCM-256 triggers the warning above on an x86 64 build with CONFIG FORTIFY SOURCE.
Copy into the union at offset sizeof(struct tls crypto info) instead. crypto ctx already points at the right union for both the first set and the TLS 1.3 rekey (tmp) case, and the address is unchanged.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾