# CVE-2026-142896: tls: avoid field-spanning write when copying crypto info

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:25:46.359Z
- **Modified:** 2026-12-03T04:18:28.850Z

> **AI summary (AI-generated, claude-haiku-5-5):** A kernel bug in TLS setsockopt triggers a FORTIFY\_SOURCE field-spanning write warning when a cgroup BPF setsockopt program is attached, affecting the Linux kernel.

## Who should check

- Anyone running Linux \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< b92cd530e692fceff6c40187c700e94033fe5f9c; \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< 202c9cb2130528f0ce9845b0f04879ee75d78a3c; \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< c72fbed869f9fc1048323d6b90c462c4e14d95c2; \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< 7a55f31d959668bcc072e33b2e6ae3313f21d600; \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< 69bb302af0ee1b570a49689970367ccfee406b1c; \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< c43c1c24f3cdc0d2d3f59e5686573ac3129637aa
- Anyone running Linux 5.9

## Description

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.

## Affected and fixed versions

- Linux: \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< b92cd530e692fceff6c40187c700e94033fe5f9c; \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< 202c9cb2130528f0ce9845b0f04879ee75d78a3c; \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< c72fbed869f9fc1048323d6b90c462c4e14d95c2; \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< 7a55f31d959668bcc072e33b2e6ae3313f21d600; \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< 69bb302af0ee1b570a49689970367ccfee406b1c; \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< c43c1c24f3cdc0d2d3f59e5686573ac3129637aa (cvelist)
- Linux: 5.9 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142896. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142896.md
Affected: Linux >= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, < b92cd530e692fceff6c40187c700e94033fe5f9c; >= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, < 202c9cb2130528f0ce9845b0f04879ee75d78a3c; >= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, < c72fbed869f9fc1048323d6b90c462c4e14d95c2; >= a7b75c5a8c41445f33efb66…
Fixed in: Linux 202c9cb2130528f0ce9845b0f04879ee75d78a3c, Linux 7a55f31d959668bcc072e33b2e6ae3313f21d600, Linux 69bb302af0ee1b570a49689970367ccfee406b1c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142896 being exploited?

There is no confirmed exploitation: CVE-2026-142896 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142896?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142896?

Linux \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< b92cd530e692fceff6c40187c700e94033fe5f9c; \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< 202c9cb2130528f0ce9845b0f04879ee75d78a3c; \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< c72fbed869f9fc1048323d6b90c462c4e14d95c2; \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< 7a55f31d959668bcc072e33b2e6ae3313f21d600; \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< 69bb302af0ee1b570a49689970367ccfee406b1c; \>= a7b75c5a8c41445f33efb663887ff5f5c3b4454b, \< c43c1c24f3cdc0d2d3f59e5686573ac3129637aa; Linux 5.9.

### Is there a fix for CVE-2026-142896?

Yes. Fixed in Linux 202c9cb2130528f0ce9845b0f04879ee75d78a3c, Linux 7a55f31d959668bcc072e33b2e6ae3313f21d600, Linux 69bb302af0ee1b570a49689970367ccfee406b1c. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-142896?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/b92cd530e692fceff6c40187c700e94033fe5f9c>
- other: <https://git.kernel.org/stable/c/202c9cb2130528f0ce9845b0f04879ee75d78a3c>
- other: <https://git.kernel.org/stable/c/c72fbed869f9fc1048323d6b90c462c4e14d95c2>
- other: <https://git.kernel.org/stable/c/7a55f31d959668bcc072e33b2e6ae3313f21d600>
- other: <https://git.kernel.org/stable/c/69bb302af0ee1b570a49689970367ccfee406b1c>
- other: <https://git.kernel.org/stable/c/c43c1c24f3cdc0d2d3f59e5686573ac3129637aa>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142896>

HTML: <https://flawdb.com/CVE-2026-142896> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142896>
