CVE-2026-52999: netfilter: nfnetlink_osf: fix out-of-bounds read on option matching

Published Jun 24, 2026
·
Updated

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

netfilter: nfnetlinkosf: fix out-of-bounds read on option matching

In nfosfmatch(), the nfosfhdrctx structure is initialized once and passed by reference to nfosfmatchone() for each fingerprint checked. During TCP option parsing, nfosfmatchone() advances the shared ctx->optp pointer.

If a fingerprint perfectly matches, the function returns early without restoring ctx->optp to its initial state. If the user has configured NFOSFLOGLEVELALL, the loop continues to the next fingerprint. However, because ctx->optp was not restored, the next call to nfosfmatchone() starts parsing from the end of the options buffer. This causes subsequent matches to read garbage data and fail immediately, making it impossible to log more than one match or logging incorrect matches.

Instead of using a shared ctx->optp pointer, pass the context as a constant pointer and use a local pointer (optp) for TCP option traversal. This makes nfosfmatchone() strictly stateless from the caller's perspective, ensuring every fingerprint check starts at the correct option offset.

Affected Software

16 affected componentsFixes available
Linux Linux kernel (netfilter nfnetlink_osf)
Microsoft azl3 kernel 6.6.139.1-1<6.6.143.1-1
6.6.143.1-1
Linux Linux kernel>=4.19.26<4.20
Linux Linux kernel>=4.20.13<5.0
Linux Linux kernel>=5.0.1<5.10.258
Linux Linux kernel>=5.11<5.15.209
Linux Linux kernel>=5.16<6.1.175
Linux Linux kernel>=6.2<6.6.141
Linux Linux kernel>=6.7<6.12.91
Linux Linux kernel>=6.13<6.18.33
Linux Linux kernel>=6.19<7.0.10
Linux Linux kernel=5.0
Linux Linux kernel=5.0-rc5
Linux Linux kernel=5.0-rc6
Linux Linux kernel=5.0-rc7
Linux Linux kernel=5.0-rc8

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.143.1-1

Event History

Jun 24, 2026
CVE Published
via MITRE·04:29 PM
Data Sourced
via MITRE·04:29 PM
DescriptionSeverity
Data Sourced
via NVD·05:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 27, 2026
Data Sourced
via Microsoft·08:13 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:13 AM
Affected Software
Updated
via Microsoft·08:13 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2026-52999?

The severity of CVE-2026-52999 is critical with a score of 9.1.

2

What does CVE-2026-52999 affect?

CVE-2026-52999 affects the Linux kernel, specifically the nfnetlink_osf component.

3

How do I fix CVE-2026-52999?

To fix CVE-2026-52999, update your Linux kernel to the latest patched version provided by your distribution.

4

What type of vulnerability is CVE-2026-52999?

CVE-2026-52999 is an out-of-bounds read vulnerability in the nf_osf_match function.

5

Can CVE-2026-52999 lead to data exposure?

Yes, CVE-2026-52999 can potentially lead to data exposure, as it allows for high-level data system access.

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