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

Summary

CVECVE-2026-52999
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-06-24 17:17:10 UTC
Updated2026-07-15 12:54:37 UTC
DescriptionIn 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.

Risk And Classification

Primary CVSS: v3.1 9.1 CRITICAL from 416baaa9-dc9f-4396-8d5f-8c081fb06d67

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

EPSS: 0.005210000 probability, percentile 0.405810000 (date 2026-07-13)

Problem Types: CWE-125


VersionSourceTypeScoreSeverityVector
3.1416baaa9-dc9f-4396-8d5f-8c081fb06d67Secondary9.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
3.1CNADECLARED9.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b 0145548346c4a30981a870a8ca00eac46ba27e85 git Not specified
CNA Linux Linux affected 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b 1c136f2c44a5913646bac85303612fd0825197a0 git Not specified
CNA Linux Linux affected 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b 1e19a07291bb8682c14c39a64725a3ae54ab8ccc git Not specified
CNA Linux Linux affected 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b 32e50f92c7cf3f4eba29622179a5fcdc2aebab41 git Not specified
CNA Linux Linux affected 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b 70a3f31d25cf2ec9d4ddfa408120171ead955623 git Not specified
CNA Linux Linux affected 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b 21883587593d7c8bb519a79460a0b5bc5ffbdabd git Not specified
CNA Linux Linux affected 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b edb78a142d2e5948e63647c0646aa7e7886935f0 git Not specified
CNA Linux Linux affected 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b f5ca450087c3baf3651055e7a6de92600f827af3 git Not specified
CNA Linux Linux affected 0c1054e0e5fdef2369fb089e94def978bd209e1f git Not specified
CNA Linux Linux affected 8316b60582facd4068fb0916c4db2418c21b7174 git Not specified
CNA Linux Linux affected 4.19.26 4.20 semver Not specified
CNA Linux Linux affected 4.20.13 4.21 semver Not specified
CNA Linux Linux affected 5.0 Not specified
CNA Linux Linux unaffected 5.0 semver Not specified
CNA Linux Linux unaffected 5.10.258 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.209 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.175 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.141 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.91 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.33 6.18.* semver Not specified
CNA Linux Linux unaffected 7.0.10 7.0.* semver Not specified
CNA Linux Linux unaffected 7.1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/1c136f2c44a5913646bac85303612fd0825197a0 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/0145548346c4a30981a870a8ca00eac46ba27e85 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/edb78a142d2e5948e63647c0646aa7e7886935f0 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/32e50f92c7cf3f4eba29622179a5fcdc2aebab41 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/70a3f31d25cf2ec9d4ddfa408120171ead955623 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/21883587593d7c8bb519a79460a0b5bc5ffbdabd 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/1e19a07291bb8682c14c39a64725a3ae54ab8ccc 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/f5ca450087c3baf3651055e7a6de92600f827af3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report