CVE-2026-52999 (GCVE-0-2026-52999)

Vulnerability from cvelistv5 – Published: 2026-06-24 16:29 – Updated: 2026-06-28 06:37
VLAI
Title
netfilter: nfnetlink_osf: fix out-of-bounds read on option matching
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.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b , < 0145548346c4a30981a870a8ca00eac46ba27e85 (git)
Affected: 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b , < 1c136f2c44a5913646bac85303612fd0825197a0 (git)
Affected: 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b , < 1e19a07291bb8682c14c39a64725a3ae54ab8ccc (git)
Affected: 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b , < 32e50f92c7cf3f4eba29622179a5fcdc2aebab41 (git)
Affected: 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b , < 70a3f31d25cf2ec9d4ddfa408120171ead955623 (git)
Affected: 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b , < 21883587593d7c8bb519a79460a0b5bc5ffbdabd (git)
Affected: 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b , < edb78a142d2e5948e63647c0646aa7e7886935f0 (git)
Affected: 1a6a0951fc009f6d9fe8ebea2d2417d80d54097b , < f5ca450087c3baf3651055e7a6de92600f827af3 (git)
Affected: 0c1054e0e5fdef2369fb089e94def978bd209e1f (git)
Affected: 8316b60582facd4068fb0916c4db2418c21b7174 (git)
Affected: 4.19.26 , < 4.20 (semver)
Affected: 4.20.13 , < 4.21 (semver)
Create a notification for this product.
Linux Linux Affected: 5.0
Unaffected: 0 , < 5.0 (semver)
Unaffected: 5.10.258 , ≤ 5.10.* (semver)
Unaffected: 5.15.209 , ≤ 5.15.* (semver)
Unaffected: 6.1.175 , ≤ 6.1.* (semver)
Unaffected: 6.6.141 , ≤ 6.6.* (semver)
Unaffected: 6.12.91 , ≤ 6.12.* (semver)
Unaffected: 6.18.33 , ≤ 6.18.* (semver)
Unaffected: 7.0.10 , ≤ 7.0.* (semver)
Unaffected: 7.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/netfilter/nfnetlink_osf.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "0145548346c4a30981a870a8ca00eac46ba27e85",
              "status": "affected",
              "version": "1a6a0951fc009f6d9fe8ebea2d2417d80d54097b",
              "versionType": "git"
            },
            {
              "lessThan": "1c136f2c44a5913646bac85303612fd0825197a0",
              "status": "affected",
              "version": "1a6a0951fc009f6d9fe8ebea2d2417d80d54097b",
              "versionType": "git"
            },
            {
              "lessThan": "1e19a07291bb8682c14c39a64725a3ae54ab8ccc",
              "status": "affected",
              "version": "1a6a0951fc009f6d9fe8ebea2d2417d80d54097b",
              "versionType": "git"
            },
            {
              "lessThan": "32e50f92c7cf3f4eba29622179a5fcdc2aebab41",
              "status": "affected",
              "version": "1a6a0951fc009f6d9fe8ebea2d2417d80d54097b",
              "versionType": "git"
            },
            {
              "lessThan": "70a3f31d25cf2ec9d4ddfa408120171ead955623",
              "status": "affected",
              "version": "1a6a0951fc009f6d9fe8ebea2d2417d80d54097b",
              "versionType": "git"
            },
            {
              "lessThan": "21883587593d7c8bb519a79460a0b5bc5ffbdabd",
              "status": "affected",
              "version": "1a6a0951fc009f6d9fe8ebea2d2417d80d54097b",
              "versionType": "git"
            },
            {
              "lessThan": "edb78a142d2e5948e63647c0646aa7e7886935f0",
              "status": "affected",
              "version": "1a6a0951fc009f6d9fe8ebea2d2417d80d54097b",
              "versionType": "git"
            },
            {
              "lessThan": "f5ca450087c3baf3651055e7a6de92600f827af3",
              "status": "affected",
              "version": "1a6a0951fc009f6d9fe8ebea2d2417d80d54097b",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "0c1054e0e5fdef2369fb089e94def978bd209e1f",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "8316b60582facd4068fb0916c4db2418c21b7174",
              "versionType": "git"
            },
            {
              "lessThan": "4.20",
              "status": "affected",
              "version": "4.19.26",
              "versionType": "semver"
            },
            {
              "lessThan": "4.21",
              "status": "affected",
              "version": "4.20.13",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/netfilter/nfnetlink_osf.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.0"
            },
            {
              "lessThan": "5.0",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.258",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.209",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.175",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.141",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.91",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.33",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.0.*",
              "status": "unaffected",
              "version": "7.0.10",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.258",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.209",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.175",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.141",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.91",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.33",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0.10",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1",
                  "versionStartIncluding": "5.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.19.26",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.20.13",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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\u0027s perspective, ensuring every fingerprint check starts at the\ncorrect option offset."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 9.1,
            "baseSeverity": "CRITICAL",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H",
            "version": "3.1"
          }
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-06-28T06:37:49.457Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/0145548346c4a30981a870a8ca00eac46ba27e85"
        },
        {
          "url": "https://git.kernel.org/stable/c/1c136f2c44a5913646bac85303612fd0825197a0"
        },
        {
          "url": "https://git.kernel.org/stable/c/1e19a07291bb8682c14c39a64725a3ae54ab8ccc"
        },
        {
          "url": "https://git.kernel.org/stable/c/32e50f92c7cf3f4eba29622179a5fcdc2aebab41"
        },
        {
          "url": "https://git.kernel.org/stable/c/70a3f31d25cf2ec9d4ddfa408120171ead955623"
        },
        {
          "url": "https://git.kernel.org/stable/c/21883587593d7c8bb519a79460a0b5bc5ffbdabd"
        },
        {
          "url": "https://git.kernel.org/stable/c/edb78a142d2e5948e63647c0646aa7e7886935f0"
        },
        {
          "url": "https://git.kernel.org/stable/c/f5ca450087c3baf3651055e7a6de92600f827af3"
        }
      ],
      "title": "netfilter: nfnetlink_osf: fix out-of-bounds read on option matching",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-52999",
    "datePublished": "2026-06-24T16:29:11.757Z",
    "dateReserved": "2026-06-09T07:44:35.377Z",
    "dateUpdated": "2026-06-28T06:37:49.457Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-52999",
      "date": "2026-07-02",
      "epss": "0.00521",
      "percentile": "0.40367"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-52999\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-06-24T17:17:10.913\",\"lastModified\":\"2026-06-28T08:16:28.703\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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\u0027s perspective, ensuring every fingerprint check starts at the\\ncorrect option offset.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"net/netfilter/nfnetlink_osf.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"1a6a0951fc009f6d9fe8ebea2d2417d80d54097b\",\"lessThan\":\"0145548346c4a30981a870a8ca00eac46ba27e85\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"1a6a0951fc009f6d9fe8ebea2d2417d80d54097b\",\"lessThan\":\"1c136f2c44a5913646bac85303612fd0825197a0\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"1a6a0951fc009f6d9fe8ebea2d2417d80d54097b\",\"lessThan\":\"1e19a07291bb8682c14c39a64725a3ae54ab8ccc\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"1a6a0951fc009f6d9fe8ebea2d2417d80d54097b\",\"lessThan\":\"32e50f92c7cf3f4eba29622179a5fcdc2aebab41\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"1a6a0951fc009f6d9fe8ebea2d2417d80d54097b\",\"lessThan\":\"70a3f31d25cf2ec9d4ddfa408120171ead955623\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"1a6a0951fc009f6d9fe8ebea2d2417d80d54097b\",\"lessThan\":\"21883587593d7c8bb519a79460a0b5bc5ffbdabd\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"1a6a0951fc009f6d9fe8ebea2d2417d80d54097b\",\"lessThan\":\"edb78a142d2e5948e63647c0646aa7e7886935f0\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"1a6a0951fc009f6d9fe8ebea2d2417d80d54097b\",\"lessThan\":\"f5ca450087c3baf3651055e7a6de92600f827af3\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"0c1054e0e5fdef2369fb089e94def978bd209e1f\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"8316b60582facd4068fb0916c4db2418c21b7174\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"4.19.26\",\"lessThan\":\"4.20\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"4.20.13\",\"lessThan\":\"4.21\",\"versionType\":\"semver\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"net/netfilter/nfnetlink_osf.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.0\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.0\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.258\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.209\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.175\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.141\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.91\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.33\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.0.10\",\"lessThanOrEqual\":\"7.0.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"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\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"impactScore\":5.2}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/0145548346c4a30981a870a8ca00eac46ba27e85\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/1c136f2c44a5913646bac85303612fd0825197a0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/1e19a07291bb8682c14c39a64725a3ae54ab8ccc\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/21883587593d7c8bb519a79460a0b5bc5ffbdabd\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/32e50f92c7cf3f4eba29622179a5fcdc2aebab41\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/70a3f31d25cf2ec9d4ddfa408120171ead955623\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/edb78a142d2e5948e63647c0646aa7e7886935f0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f5ca450087c3baf3651055e7a6de92600f827af3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…