{"document":{"category":"csaf_vex","csaf_version":"2.0","title":"CVE-2026-52999: netfilter: nfnetlink_osf: fix out-of-bounds read on option matching","publisher":{"category":"vendor","name":"HarborGuard Database","namespace":"https://database.harborguard.co"},"tracking":{"id":"CVE-2026-52999","status":"final","version":"1","initial_release_date":"2026-06-24T16:29:11.757Z","current_release_date":"2026-06-28T06:37:49.457Z","revision_history":[{"date":"2026-06-24T16:29:11.757Z","number":"1","summary":"Initial machine-readable export from HarborGuard."}]},"distribution":{"tlp":{"label":"WHITE"},"text":"Public CVE data; freely redistributable."},"notes":[{"category":"description","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nfnetlink_osf: fix out-of-bounds read on option matching\n\nIn nf_osf_match(), the nf_osf_hdr_ctx structure is initialized once\nand passed by reference to nf_osf_match_one() for each fingerprint\nchecked. During TCP option parsing, nf_osf_match_one() advances the\nshared ctx->optp pointer.\n\nIf a fingerprint perfectly matches, the function returns early without\nrestoring ctx->optp to its initial state. If the user has configured\nNF_OSF_LOGLEVEL_ALL, the loop continues to the next fingerprint.\nHowever, because ctx->optp was not restored, the next call to\nnf_osf_match_one() starts parsing from the end of the options buffer.\nThis causes subsequent matches to read garbage data and fail\nimmediately, making it impossible to log more than one match or logging\nincorrect matches.\n\nInstead of using a shared ctx->optp pointer, pass the context as a\nconstant pointer and use a local pointer (optp) for TCP option\ntraversal. This makes nf_osf_match_one() strictly stateless from the\ncaller's perspective, ensuring every fingerprint check starts at the\ncorrect option offset.","title":"CVE description"}],"references":[{"category":"self","summary":"CVE-2026-52999 on HarborGuard Database","url":"https://database.harborguard.co/cve/CVE-2026-52999"},{"category":"external","summary":"CVE Record","url":"https://www.cve.org/CVERecord?id=CVE-2026-52999"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/0145548346c4a30981a870a8ca00eac46ba27e85"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/1c136f2c44a5913646bac85303612fd0825197a0"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/1e19a07291bb8682c14c39a64725a3ae54ab8ccc"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/32e50f92c7cf3f4eba29622179a5fcdc2aebab41"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/70a3f31d25cf2ec9d4ddfa408120171ead955623"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/21883587593d7c8bb519a79460a0b5bc5ffbdabd"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/edb78a142d2e5948e63647c0646aa7e7886935f0"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/f5ca450087c3baf3651055e7a6de92600f827af3"}]},"product_tree":{"branches":[{"category":"vendor","name":"Linux","branches":[{"category":"product_name","name":"Linux","branches":[{"category":"product_version_range","name":">=1a6a0951fc009f6d9fe8ebea2d2417d80d54097b <0145548346c4a30981a870a8ca00eac46ba27e85","product":{"name":"Linux Linux >=1a6a0951fc009f6d9fe8ebea2d2417d80d54097b <0145548346c4a30981a870a8ca00eac46ba27e85","product_id":"CSAFPID-1","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=1a6a0951fc009f6d9fe8ebea2d2417d80d54097b <1c136f2c44a5913646bac85303612fd0825197a0","product":{"name":"Linux Linux >=1a6a0951fc009f6d9fe8ebea2d2417d80d54097b <1c136f2c44a5913646bac85303612fd0825197a0","product_id":"CSAFPID-2","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=1a6a0951fc009f6d9fe8ebea2d2417d80d54097b <1e19a07291bb8682c14c39a64725a3ae54ab8ccc","product":{"name":"Linux Linux >=1a6a0951fc009f6d9fe8ebea2d2417d80d54097b <1e19a07291bb8682c14c39a64725a3ae54ab8ccc","product_id":"CSAFPID-3","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=1a6a0951fc009f6d9fe8ebea2d2417d80d54097b <32e50f92c7cf3f4eba29622179a5fcdc2aebab41","product":{"name":"Linux Linux >=1a6a0951fc009f6d9fe8ebea2d2417d80d54097b <32e50f92c7cf3f4eba29622179a5fcdc2aebab41","product_id":"CSAFPID-4","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=1a6a0951fc009f6d9fe8ebea2d2417d80d54097b <70a3f31d25cf2ec9d4ddfa408120171ead955623","product":{"name":"Linux Linux >=1a6a0951fc009f6d9fe8ebea2d2417d80d54097b <70a3f31d25cf2ec9d4ddfa408120171ead955623","product_id":"CSAFPID-5","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=1a6a0951fc009f6d9fe8ebea2d2417d80d54097b <21883587593d7c8bb519a79460a0b5bc5ffbdabd","product":{"name":"Linux Linux >=1a6a0951fc009f6d9fe8ebea2d2417d80d54097b <21883587593d7c8bb519a79460a0b5bc5ffbdabd","product_id":"CSAFPID-6","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=1a6a0951fc009f6d9fe8ebea2d2417d80d54097b <edb78a142d2e5948e63647c0646aa7e7886935f0","product":{"name":"Linux Linux >=1a6a0951fc009f6d9fe8ebea2d2417d80d54097b <edb78a142d2e5948e63647c0646aa7e7886935f0","product_id":"CSAFPID-7","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=1a6a0951fc009f6d9fe8ebea2d2417d80d54097b <f5ca450087c3baf3651055e7a6de92600f827af3","product":{"name":"Linux Linux >=1a6a0951fc009f6d9fe8ebea2d2417d80d54097b <f5ca450087c3baf3651055e7a6de92600f827af3","product_id":"CSAFPID-8","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"0c1054e0e5fdef2369fb089e94def978bd209e1f","product":{"name":"Linux Linux 0c1054e0e5fdef2369fb089e94def978bd209e1f","product_id":"CSAFPID-9","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"8316b60582facd4068fb0916c4db2418c21b7174","product":{"name":"Linux Linux 8316b60582facd4068fb0916c4db2418c21b7174","product_id":"CSAFPID-10","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=4.19.26 <4.20","product":{"name":"Linux Linux >=4.19.26 <4.20","product_id":"CSAFPID-11","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=4.20.13 <4.21","product":{"name":"Linux Linux >=4.20.13 <4.21","product_id":"CSAFPID-12","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}}]}]},{"category":"vendor","name":"Linux","branches":[{"category":"product_name","name":"Linux","branches":[{"category":"product_version","name":"5.0","product":{"name":"Linux Linux 5.0","product_id":"CSAFPID-13","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.0:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"0","product":{"name":"Linux Linux 0","product_id":"CSAFPID-14","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.0:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"5.10.258","product":{"name":"Linux Linux 5.10.258","product_id":"CSAFPID-15","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.0:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"5.15.209","product":{"name":"Linux Linux 5.15.209","product_id":"CSAFPID-16","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.0:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"6.1.175","product":{"name":"Linux Linux 6.1.175","product_id":"CSAFPID-17","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.0:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"6.6.141","product":{"name":"Linux Linux 6.6.141","product_id":"CSAFPID-18","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.0:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"6.12.91","product":{"name":"Linux Linux 6.12.91","product_id":"CSAFPID-19","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.0:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"6.18.33","product":{"name":"Linux Linux 6.18.33","product_id":"CSAFPID-20","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.0:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"7.0.10","product":{"name":"Linux Linux 7.0.10","product_id":"CSAFPID-21","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.0:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"7.1","product":{"name":"Linux Linux 7.1","product_id":"CSAFPID-22","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:5.0:*:*:*:*:*:*:*"}}}]}]}]},"vulnerabilities":[{"cve":"CVE-2026-52999","title":"netfilter: nfnetlink_osf: fix out-of-bounds read on option matching","notes":[{"category":"description","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nfnetlink_osf: fix out-of-bounds read on option matching\n\nIn nf_osf_match(), the nf_osf_hdr_ctx structure is initialized once\nand passed by reference to nf_osf_match_one() for each fingerprint\nchecked. During TCP option parsing, nf_osf_match_one() advances the\nshared ctx->optp pointer.\n\nIf a fingerprint perfectly matches, the function returns early without\nrestoring ctx->optp to its initial state. If the user has configured\nNF_OSF_LOGLEVEL_ALL, the loop continues to the next fingerprint.\nHowever, because ctx->optp was not restored, the next call to\nnf_osf_match_one() starts parsing from the end of the options buffer.\nThis causes subsequent matches to read garbage data and fail\nimmediately, making it impossible to log more than one match or logging\nincorrect matches.\n\nInstead of using a shared ctx->optp pointer, pass the context as a\nconstant pointer and use a local pointer (optp) for TCP option\ntraversal. This makes nf_osf_match_one() strictly stateless from the\ncaller's perspective, ensuring every fingerprint check starts at the\ncorrect option offset.","title":"CVE description"}],"product_status":{"known_affected":["CSAFPID-1","CSAFPID-2","CSAFPID-3","CSAFPID-4","CSAFPID-5","CSAFPID-6","CSAFPID-7","CSAFPID-8","CSAFPID-9","CSAFPID-10","CSAFPID-11","CSAFPID-12","CSAFPID-13"],"fixed":["CSAFPID-14","CSAFPID-15","CSAFPID-16","CSAFPID-17","CSAFPID-18","CSAFPID-19","CSAFPID-20","CSAFPID-21","CSAFPID-22"]},"scores":[{"cvss_v3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","baseScore":9.1,"baseSeverity":"CRITICAL"},"products":["CSAFPID-1","CSAFPID-2","CSAFPID-3","CSAFPID-4","CSAFPID-5","CSAFPID-6","CSAFPID-7","CSAFPID-8","CSAFPID-9","CSAFPID-10","CSAFPID-11","CSAFPID-12","CSAFPID-13"]}],"remediations":[{"category":"vendor_fix","details":"Update to a fixed version: 0, 0145548346c4a30981a870a8ca00eac46ba27e85, 1c136f2c44a5913646bac85303612fd0825197a0, 1e19a07291bb8682c14c39a64725a3ae54ab8ccc, 21883587593d7c8bb519a79460a0b5bc5ffbdabd, 32e50f92c7cf3f4eba29622179a5fcdc2aebab41, 4.20, 4.21, 5.10.258, 5.15.209, 6.1.175, 6.6.141, 6.12.91, 6.18.33, 7.0.10, 7.1, 70a3f31d25cf2ec9d4ddfa408120171ead955623, edb78a142d2e5948e63647c0646aa7e7886935f0, f5ca450087c3baf3651055e7a6de92600f827af3.","product_ids":["CSAFPID-1","CSAFPID-2","CSAFPID-3","CSAFPID-4","CSAFPID-5","CSAFPID-6","CSAFPID-7","CSAFPID-8","CSAFPID-9","CSAFPID-10","CSAFPID-11","CSAFPID-12","CSAFPID-13"]}]}]}