{
  "id": "CVE-2026-52999",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-52999",
  "published_at": "2026-06-24T16:29:11.757Z",
  "title": "netfilter: nfnetlink_osf: fix out-of-bounds read on option matching",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 9.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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-\u003eoptp pointer.\n\nIf a fingerprint perfectly matches, the function returns early without\nrestoring ctx-\u003eoptp to its initial state. If the user has configured\nNF_OSF_LOGLEVEL_ALL, the loop continues to the next fingerprint.\nHowever, because ctx-\u003eoptp 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-\u003eoptp 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.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.0:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.0:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.0:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.0:rc7:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.0:rc8:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b, \u003c 0145548346c4a30981a870a8ca00eac46ba27e85",
          "\u003e= 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b, \u003c 1c136f2c44a5913646bac85303612fd0825197a0",
          "\u003e= 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b, \u003c 1e19a07291bb8682c14c39a64725a3ae54ab8ccc",
          "\u003e= 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b, \u003c 32e50f92c7cf3f4eba29622179a5fcdc2aebab41",
          "\u003e= 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b, \u003c 70a3f31d25cf2ec9d4ddfa408120171ead955623",
          "\u003e= 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b, \u003c 21883587593d7c8bb519a79460a0b5bc5ffbdabd",
          "\u003e= 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b, \u003c edb78a142d2e5948e63647c0646aa7e7886935f0",
          "\u003e= 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b, \u003c f5ca450087c3baf3651055e7a6de92600f827af3",
          "0c1054e0e5fdef2369fb089e94def978bd209e1f",
          "8316b60582facd4068fb0916c4db2418c21b7174",
          "\u003e= 4.19.26, \u003c 4.20",
          "\u003e= 4.20.13, \u003c 4.21"
        ],
        "fixed_in": [
          "0145548346c4a30981a870a8ca00eac46ba27e85",
          "1c136f2c44a5913646bac85303612fd0825197a0",
          "1e19a07291bb8682c14c39a64725a3ae54ab8ccc",
          "32e50f92c7cf3f4eba29622179a5fcdc2aebab41",
          "70a3f31d25cf2ec9d4ddfa408120171ead955623",
          "21883587593d7c8bb519a79460a0b5bc5ffbdabd",
          "edb78a142d2e5948e63647c0646aa7e7886935f0",
          "f5ca450087c3baf3651055e7a6de92600f827af3",
          "4.20",
          "4.21"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.0"
        ],
        "fixed_in": [
          "0",
          "5.10.258",
          "5.15.209",
          "6.1.175",
          "6.6.141",
          "6.12.91",
          "6.18.33",
          "7.0.10",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 0145548346c4a30981a870a8ca00eac46ba27e85 or 1c136f2c44a5913646bac85303612fd0825197a0 or 1e19a07291bb8682c14c39a64725a3ae54ab8ccc or 32e50f92c7cf3f4eba29622179a5fcdc2aebab41 or 70a3f31d25cf2ec9d4ddfa408120171ead955623 or 21883587593d7c8bb519a79460a0b5bc5ffbdabd or edb78a142d2e5948e63647c0646aa7e7886935f0 or f5ca450087c3baf3651055e7a6de92600f827af3 or 4.20 or 4.21 or later.",
      "Upgrade Linux to 0 or 5.10.258 or 5.15.209 or 6.1.175 or 6.6.141 or 6.12.91 or 6.18.33 or 7.0.10 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
