{"id":"CVE-2026-143254","summary":"calipso: do not charge request socket options to the listener","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncalipso: do not charge request socket options to the listener\n\ncalipso_req_setattr() and calipso_req_delattr() allocate ireq-\u003eipv6_opt\nwith ipv6_renew_options(), which charges the listener sk_omem_alloc\nthrough sock_kmalloc().\n\ntcp_v6_reqsk_destructor() frees ireq-\u003eipv6_opt without uncharging it,\nso each request socket leaks its options size from the listener\nbudget. Once sysctl_optmem_max is reached, sock_kmalloc() fails,\ncalipso_req_setattr() returns -ENOBUFS, and tcp_v6_route_req() drops\nall subsequent SYN packets. __sk_destruct() also reports an optmem\nleakage when the listener is destroyed.\n\nUncharging in tcp_v6_reqsk_destructor() would not be correct: after a\nmigration, req-\u003ersk_listener is no longer the socket that was charged.\n\nThese options belong to the request socket, there is no reason to\ncharge them to the listener. Change ipv6_renew_options() to use\nkmalloc() when its sk argument is NULL, and use this from\ncalipso_req_setattr() and calipso_req_delattr(),\nlike cipso_v4_req_setattr() which uses kzalloc().\n\nNote:\n\nAfter this patch, calipso_req_setattr() and calipso_req_delattr()\nno longer need the listener. Commit 10876da918fa (\"calipso: Fix\nnull-ptr-deref in calipso_req_{set,del}attr().\") could be reverted\nin net-next (also removing the then unused sk variables), so that\nCALIPSO works with SYN cookies.","modified":"2026-12-03T11:01:47.943867477Z","published":"2026-12-03T09:21:02.101Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143254.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0007514639551da53bb11f9275a9c61d9b251ca2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2c1dce211361249e311eaf8ed703e680fed3b7ba"},{"type":"WEB","url":"https://git.kernel.org/stable/c/36673c6b55a5d5d7496d6ac23daa442e05735373"},{"type":"WEB","url":"https://git.kernel.org/stable/c/36d5a01be1059c6038c8e0e177d94028ada9ae6a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b4a2cc6d748d3056a25812dcf5f5377a59afd02f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cd155dea914ce071014c5e84c216f2e971cf692f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143254.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143254"}],"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"},{"fixed":"b4a2cc6d748d3056a25812dcf5f5377a59afd02f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143254.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.9.2"}