CVE-2026-74714: bpf: tcp: Fix use-after-free in bpf_iter_tcp_established_batch()

Published Aug 22, 2026
·
Updated

bpf: tcp: Fix use-after-free in bpfitertcpestablishedbatch()

Affected Software

2 affected componentsFixes available
Linux Linux kernel
Microsoft azl3 kernel 6.6.150.1-1<6.6.152.1-1
6.6.152.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.152.1-1

Event History

Aug 22, 2026
CVE Published
via MITRE·03:33 PM
Data Sourced
via MITRE·03:33 PM
DescriptionSeverity
Data Sourced
via NVD·04:16 PM
DescriptionSeverity
Aug 24, 2026
Data Sourced
via Microsoft·08:02 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What conditions are required to trigger the issue?

A TCP_NEW_SYN_RECV request_sock must be published on the TCP established hash chain while its rsk_refcnt is still zero, and bpf_iter_tcp_established_batch() must inspect it during that interval. The race occurs when the iterator calls sock_hold() under the bucket lock before reqsk_queue_hash_req() sets rsk_refcnt to 3.

2

How can administrators recognize that the race has occurred?

The kernel can report a refcount warning such as "refcount_t: addition on 0; use-after-free." The reported call trace includes bpf_iter_tcp_established_batch(), bpf_iter_tcp_batch(), bpf_iter_tcp_seq_next(), bpf_seq_read(), and may include vfs_read().

3

Which code behavior is unsafe in the affected path?

bpf_iter_tcp_established_batch() uses plain sock_hold() for entries found while holding the ehash bucket lock. For a newly published request_sock, the bucket lock does not guarantee that sk_refcnt is nonzero, because the reference count is initialized after the entry is published.

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