CVE-2025-21826 (GCVE-0-2025-21826)

Vulnerability from cvelistv5 – Published: 2025-03-06 16:04 – Updated: 2025-11-03 20:59
VLAI?
Title
netfilter: nf_tables: reject mismatching sum of field_len with set key length
Summary
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: reject mismatching sum of field_len with set key length The field length description provides the length of each separated key field in the concatenation, each field gets rounded up to 32-bits to calculate the pipapo rule width from pipapo_init(). The set key length provides the total size of the key aligned to 32-bits. Register-based arithmetics still allows for combining mismatching set key length and field length description, eg. set key length 10 and field description [ 5, 4 ] leading to pipapo width of 12.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 2d4c0798a1ef8db15b3277697ac2def4eda42312 , < 6b467c8feac759f4c5c86d708beca2aa2b29584f (git)
Affected: 77be8c495a3f841e88b46508cc20d3d7d3289da3 , < 5083a7ae45003456c253e981b30a43f71230b4a3 (git)
Affected: 9cb084df01e198119de477ac691d682fb01e80f3 , < 2ac254343d3cf228ae0738b2615fedf85d000752 (git)
Affected: dc45bb00e66a33de1abb29e3d587880e1d4d9a7e , < 82e491e085719068179ff6a5466b7387cc4bbf32 (git)
Affected: 3ce67e3793f48c1b9635beb9bb71116ca1e51b58 , < 49b7182b97bafbd5645414aff054b4a65d05823d (git)
Affected: 3ce67e3793f48c1b9635beb9bb71116ca1e51b58 , < ab50d0eff4a939d20c37721fd9766347efcdb6f6 (git)
Affected: 3ce67e3793f48c1b9635beb9bb71116ca1e51b58 , < 1b9335a8000fb70742f7db10af314104b6ace220 (git)
Affected: ff67e3e488090908dc015ba04d7407d8bd467f7e (git)
Create a notification for this product.
    Linux Linux Affected: 6.8
Unaffected: 0 , < 6.8 (semver)
Unaffected: 5.10.235 , ≤ 5.10.* (semver)
Unaffected: 5.15.179 , ≤ 5.15.* (semver)
Unaffected: 6.1.129 , ≤ 6.1.* (semver)
Unaffected: 6.6.76 , ≤ 6.6.* (semver)
Unaffected: 6.12.13 , ≤ 6.12.* (semver)
Unaffected: 6.13.2 , ≤ 6.13.* (semver)
Unaffected: 6.14 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2025-11-03T20:59:57.565Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"
          },
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/netfilter/nf_tables_api.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "6b467c8feac759f4c5c86d708beca2aa2b29584f",
              "status": "affected",
              "version": "2d4c0798a1ef8db15b3277697ac2def4eda42312",
              "versionType": "git"
            },
            {
              "lessThan": "5083a7ae45003456c253e981b30a43f71230b4a3",
              "status": "affected",
              "version": "77be8c495a3f841e88b46508cc20d3d7d3289da3",
              "versionType": "git"
            },
            {
              "lessThan": "2ac254343d3cf228ae0738b2615fedf85d000752",
              "status": "affected",
              "version": "9cb084df01e198119de477ac691d682fb01e80f3",
              "versionType": "git"
            },
            {
              "lessThan": "82e491e085719068179ff6a5466b7387cc4bbf32",
              "status": "affected",
              "version": "dc45bb00e66a33de1abb29e3d587880e1d4d9a7e",
              "versionType": "git"
            },
            {
              "lessThan": "49b7182b97bafbd5645414aff054b4a65d05823d",
              "status": "affected",
              "version": "3ce67e3793f48c1b9635beb9bb71116ca1e51b58",
              "versionType": "git"
            },
            {
              "lessThan": "ab50d0eff4a939d20c37721fd9766347efcdb6f6",
              "status": "affected",
              "version": "3ce67e3793f48c1b9635beb9bb71116ca1e51b58",
              "versionType": "git"
            },
            {
              "lessThan": "1b9335a8000fb70742f7db10af314104b6ace220",
              "status": "affected",
              "version": "3ce67e3793f48c1b9635beb9bb71116ca1e51b58",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "ff67e3e488090908dc015ba04d7407d8bd467f7e",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/netfilter/nf_tables_api.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.8"
            },
            {
              "lessThan": "6.8",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.235",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.179",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.129",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.76",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.13",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.13.*",
              "status": "unaffected",
              "version": "6.13.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.14",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.235",
                  "versionStartIncluding": "5.10.209",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.179",
                  "versionStartIncluding": "5.15.148",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.129",
                  "versionStartIncluding": "6.1.75",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.76",
                  "versionStartIncluding": "6.6.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.13",
                  "versionStartIncluding": "6.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.13.2",
                  "versionStartIncluding": "6.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.14",
                  "versionStartIncluding": "6.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.7.2",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_tables: reject mismatching sum of field_len with set key length\n\nThe field length description provides the length of each separated key\nfield in the concatenation, each field gets rounded up to 32-bits to\ncalculate the pipapo rule width from pipapo_init(). The set key length\nprovides the total size of the key aligned to 32-bits.\n\nRegister-based arithmetics still allows for combining mismatching set\nkey length and field length description, eg. set key length 10 and field\ndescription [ 5, 4 ] leading to pipapo width of 12."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T13:06:39.017Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/6b467c8feac759f4c5c86d708beca2aa2b29584f"
        },
        {
          "url": "https://git.kernel.org/stable/c/5083a7ae45003456c253e981b30a43f71230b4a3"
        },
        {
          "url": "https://git.kernel.org/stable/c/2ac254343d3cf228ae0738b2615fedf85d000752"
        },
        {
          "url": "https://git.kernel.org/stable/c/82e491e085719068179ff6a5466b7387cc4bbf32"
        },
        {
          "url": "https://git.kernel.org/stable/c/49b7182b97bafbd5645414aff054b4a65d05823d"
        },
        {
          "url": "https://git.kernel.org/stable/c/ab50d0eff4a939d20c37721fd9766347efcdb6f6"
        },
        {
          "url": "https://git.kernel.org/stable/c/1b9335a8000fb70742f7db10af314104b6ace220"
        }
      ],
      "title": "netfilter: nf_tables: reject mismatching sum of field_len with set key length",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-21826",
    "datePublished": "2025-03-06T16:04:32.274Z",
    "dateReserved": "2024-12-29T08:45:45.775Z",
    "dateUpdated": "2025-11-03T20:59:57.565Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

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…