CVE-2026-143254

Source
https://cve.org/CVERecord?id=CVE-2026-143254
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143254.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143254
Downstream
Published
2026-12-03T09:21:02Z
Modified
2026-12-03T11:01:47Z
Summary
calipso: do not charge request socket options to the listener
Details

In the Linux kernel, the following vulnerability has been resolved:

calipso: do not charge request socket options to the listener

calipso_req_setattr() and calipso_req_delattr() allocate ireq->ipv6_opt with ipv6_renew_options(), which charges the listener sk_omem_alloc through sock_kmalloc().

tcp_v6_reqsk_destructor() frees ireq->ipv6_opt without uncharging it, so each request socket leaks its options size from the listener budget. Once sysctl_optmem_max is reached, sock_kmalloc() fails, calipso_req_setattr() returns -ENOBUFS, and tcp_v6_route_req() drops all subsequent SYN packets. __sk_destruct() also reports an optmem leakage when the listener is destroyed.

Uncharging in tcp_v6_reqsk_destructor() would not be correct: after a migration, req->rsk_listener is no longer the socket that was charged.

These options belong to the request socket, there is no reason to charge them to the listener. Change ipv6_renew_options() to use kmalloc() when its sk argument is NULL, and use this from calipso_req_setattr() and calipso_req_delattr(), like cipso_v4_req_setattr() which uses kzalloc().

Note:

After this patch, calipso_req_setattr() and calipso_req_delattr() no longer need the listener. Commit 10876da918fa ("calipso: Fix null-ptr-deref in calipso_req_{set,del}attr().") could be reverted in net-next (also removing the then unused sk variables), so that CALIPSO works with SYN cookies.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143254.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e1adea927080821ebfa7505bff752a4015955660
Fixed
0007514639551da53bb11f9275a9c61d9b251ca2
Fixed
36673c6b55a5d5d7496d6ac23daa442e05735373
Fixed
2c1dce211361249e311eaf8ed703e680fed3b7ba
Fixed
cd155dea914ce071014c5e84c216f2e971cf692f
Fixed
36d5a01be1059c6038c8e0e177d94028ada9ae6a
Show 1 more event Show fewer events
Fixed
b4a2cc6d748d3056a25812dcf5f5377a59afd02f

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143254.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.8.0
Fixed
5.10.276
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.227
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.12.120
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.66
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143254.json"