CVE-2026-143153: tcp: free saved_syn after an RCU grace period

Published Dec 3, 2026
·
Updated

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

tcp: free savedsyn after an RCU grace period

tcpreqskrecordsyn() allocates savedsyn separately from its request socket. bpfsockopsgetsyn() can load that pointer while processing a retransmitted SYN under RCU.

There are two ownership transfers which can let another CPU reclaim the allocation while such a reader is still using it.

First, tcpmovesyn() transfers req->savedsyn to a newly created child socket. The child can be closed and tcpsavedsynfree() can reclaim the allocation before a reader of the old request finishes.

Second, inetreqskclone() shallow-copies requestsock during request migration. After reqskmigratereset() clears the old request pointer, the migrated clone owns it. However, a reader which already loaded the pointer from the old request can still be using it when the clone is released.

I found this through LLM-assisted concurrency fuzzing.

Mark the request-socket savedsyn pointer as RCU protected and use RCU accessors for its reads and updates. Keep the full-socket pointer plain because all of its accesses hold the socket lock. Embed an rcuhead in struct savedsyn and use kfreercu() in both teardown paths. This lets a request-side reader which loaded the object before an ownership transfer finish.

This follows commit e3f33b0a1d89 ("ipv4: free inetopt and ireqopt after an RCU grace period"), which fixed the same ownership-transfer pattern for IPv4 options.

The issue was confirmed with KASAN on v7.3-16007-g36aad21d50d1 using temporary kernel instrumentation to widen the reader and request-migration window. KASAN reported a slab-use-after-free read in bpfsockopsgetsyn(), with the allocation freed by reqskfree() from reqsktimerhandler(). The same explicit migration test completed without a report with deferred reclamation. A patched kernel without the delay instrumentation also completed a successful migration and seven saved-SYN reads without a KASAN report.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the Linux TCP request-socket code, mark the saved_syn pointer as RCU-protected and use RCU accessors for its reads and updates; embed an rcu_head in struct saved_syn and use kfree_rcu() in both teardown paths. Keep the full-socket pointer plain.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:19 AM
Data Sourced
via MITRE·09:19 AM
Description

Frequently Asked Questions

1

Which deployments are most relevant to this issue?

The vulnerable access involves bpf_sock_ops_get_syn() reading saved SYN data while a retransmitted SYN is processed under RCU. Deployments using this BPF socket-operations path are the relevant exposure context described by the advisory.

2

What concurrent events can trigger the use-after-free condition?

A reader can retain a saved_syn pointer from an old request while ownership is transferred to a child socket that is then closed, or while a request is migrated and the clone is later released. In either case, another CPU can reclaim the allocation before the RCU reader finishes using it.

3

Does the issue also apply to the saved SYN pointer on a full socket?

The advisory distinguishes the full-socket pointer from the request-socket pointer. Full-socket pointer accesses hold the socket lock, while the request-socket saved_syn pointer requires RCU protection.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203