netfilter: nfnetlink_osf: fix out-of-bounds read on option matching
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · High
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.
Summary
In the Linux kernel, the following vulnerability has been resolved: netfilter: nfnetlink_osf: fix out-of-bounds read on option matching In nf_osf_match(), the nf_osf_hdr_ctx structure is initialized once and passed by reference to nf_osf_match_one() for each fingerprint checked. During TCP option parsing, nf_osf_match_one() 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 NF_OSF_LOGLEVEL_ALL, the loop continues to the next fingerprint. However, because ctx->optp was not restored, the next call to nf_osf_match_one() 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 nf_osf_match_one() strictly stateless from the caller's perspective, ensuring every fingerprint check starts at the correct option offset.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 4.19.26 to before 4.20; 4.20.13 to before 4.21 | 4.20, 4.21 | Patch available | CNA |
| Linux | Linux | 5.0 and later | 5.10.258, 5.15.209, 6.1.175, 6.6.141, 6.12.91, 6.18.33, 7.0.10, 7.1 | Patch available | CNA |
- Linux VendorLinux Affected 4.19.26 to before 4.20; 4.20.13 to before 4.21 Fixed in 4.20, 4.21 Patch available CNA
- Linux VendorLinux Affected 5.0 and later Fixed in 5.10.258, 5.15.209, 6.1.175, 6.6.141, 6.12.91, 6.18.33, 7.0.10, 7.1 Patch available CNA
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.19.26 to before 4.20; 4.20.13 to before 5.0; 5.0.1 to before 5.10.258; 5.11 to before 5.15.209; 5.16 to before 6.1.175; 6.2 to before 6.6.141; 6.7 to before 6.12.91; 6.13 to before 6.18.33; 6.19 to before 7.0.10 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.0:-:*:*:*:*:*:* | 5.0 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.0:rc5:*:*:*:*:*:* | 5.0 rc5 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.0:rc6:*:*:*:*:*:* | 5.0 rc6 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.0:rc7:*:*:*:*:*:* | 5.0 rc7 | Vulnerable | Linux |
| cpe:2.3:o:linux:linux_kernel:5.0:rc8:*:*:*:*:*:* | 5.0 rc8 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 4.19.26 to before 4.20; 4.20.13 to before 5.0; 5.0.1 to before 5.10.258; 5.11 to before 5.15.209; 5.16 to before 6.1.175; 6.2 to before 6.6.141; 6.7 to before 6.12.91; 6.13 to before 6.18.33; 6.19 to before 7.0.10 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.0:-:*:*:*:*:*:* Versions 5.0 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.0:rc5:*:*:*:*:*:* Versions 5.0 rc5 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.0:rc6:*:*:*:*:*:* Versions 5.0 rc6 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.0:rc7:*:*:*:*:*:* Versions 5.0 rc7 Vulnerable ·Linux
- cpe:2.3:o:linux:linux_kernel:5.0:rc8:*:*:*:*:*:* Versions 5.0 rc8 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 4.20, 4.21
- Fix · CNA Linux (Linux) Fixed in 5.10.258, 5.15.209, 6.1.175, 6.6.141, 6.12.91, 6.18.33, 7.0.10, 7.1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
Not affected: 3 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Timeline
- 2026-10-02 Threatist record created from CVE-2026-52999
- 2026-10-03 Alias added: GHSA-vhgw-q6q5-v9w3
- 2026-10-09 EPSS moved to the below the 50th percentile
- 2026-10-16 CISA SSVC decision points changed
- 2026-10-19 Weakness changed · CISA ADP
References
Patch 8
- https://git.kernel.org/stable/c/0145548346c4a30981a870a8ca00eac46ba27e85
- https://git.kernel.org/stable/c/1c136f2c44a5913646bac85303612fd0825197a0
- https://git.kernel.org/stable/c/1e19a07291bb8682c14c39a64725a3ae54ab8ccc
- https://git.kernel.org/stable/c/32e50f92c7cf3f4eba29622179a5fcdc2aebab41
- https://git.kernel.org/stable/c/70a3f31d25cf2ec9d4ddfa408120171ead955623
- https://git.kernel.org/stable/c/21883587593d7c8bb519a79460a0b5bc5ffbdabd
- https://git.kernel.org/stable/c/edb78a142d2e5948e63647c0646aa7e7886935f0
- https://git.kernel.org/stable/c/f5ca450087c3baf3651055e7a6de92600f827af3
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2026-52999 · CVE Program
- CVE-2026-52999 · NVD
- FIRST EPSS
- GHSA-vhgw-q6q5-v9w3 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-52999 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences