Skip to content
Heist/ feed
Back to feed
HighFix available

netfilter: nftables: exthdr: fix 4-byte stack OOB write

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: netfilter: nftables: exthdr: fix 4-byte stack OOB write If priv->len is a multiple of 4, then dst[len / 4] can write past the destination array which leads to stack corruption. This construct is necessary to clean the remainder of the register in case ->len is NOT a multiple of the register size, so make it conditional just like nft_payload.c does. The bug was added in 4.1 cycle and then copied/inherited when tcp/sctp and ip option support was added. Bug reported by Zero Day Initiative project (ZDI-CAN-21950, ZDI-CAN-21951, ZDI-CAN-21961).

Products
Kernel
Affected versions
Not specified
Fixed versions
4.19.316, 5.10.198, 5.15.132, 5.4.279, 6.1.54, 6.5.4
CVEs
CVE-2023-52628
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 10:43 UTC · Revision 1

Source evidence

netfilter: nftables: exthdr: fix 4-byte stack OOB write

core-osv · Original source

Published 28 Mar 2024, 07:33 UTC

In the Linux kernel, the following vulnerability has been resolved: netfilter: nftables: exthdr: fix 4-byte stack OOB write If priv->len is a multiple of 4, then dst[len / 4] can write past the destination array which leads to stack corruption. This construct is necessary to clean the remainder of the register in case ->len is NOT a multiple of the register size, so make it conditional just like nft_payload.c does. The bug was added in 4.1 cycle and then copied/inherited when tcp/sctp and ip option support was added. Bug reported by Zero Day Initiative project (ZDI-CAN-21950, ZDI-CAN-21951, ZDI-CAN-21961).

osv:CVE-2023-52628

Kernel

Fixed versions: 4.19.316, 5.4.279, 5.10.198, 5.15.132, 6.1.54, 6.5.4

Complete source record
{
  "id": "beb8227bbfde286930a680d8e86195e6b634bb2a6e1fa9a7951a9d43d461ef03",
  "url": "https://osv.dev/vulnerability/CVE-2023-52628",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "netfilter: nftables: exthdr: fix 4-byte stack OOB write",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: netfilter: nftables: exthdr: fix 4-byte stack OOB write If priv->len is a multiple of 4, then dst[len / 4] can write past the destination array which leads to stack corruption. This construct is necessary to clean the remainder of the register in case ->len is NOT a multiple of the register size, so make it conditional just like nft_payload.c does. The bug was added in 4.1 cycle and then copied/inherited when tcp/sctp and ip option support was added. Bug reported by Zero Day Initiative project (ZDI-CAN-21950, ZDI-CAN-21951, ZDI-CAN-21961).",
    "evidence": "osv:CVE-2023-52628",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.19.316",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.279",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.198",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.132",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.54",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.5.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-52628",
      "aliases": [
        "CVE-2023-52628"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "49499c3e6e18b7677a63316f3ff54a16533dc28f"
                },
                {
                  "fixed": "28a97c43c9e32f437ebb8d6126f9bb7f3ca9521a"
                },
                {
                  "fixed": "cf39c4f77a773a547ac2bcf30ecdd303bb0c80cb"
                },
                {
                  "fixed": "a7d86a77c33ba1c357a7504341172cc1507f0698"
                },
                {
                  "fixed": "1ad7b189cc1411048434e8595ffcbe7873b71082"
                },
                {
                  "fixed": "d9ebfc0f21377690837ebbd119e679243e0099cc"
                },
                {
                  "fixed": "c8f292322ff16b9a2272a67de396c09a50e09dce"
                },
                {
                  "fixed": "fd94d9dadee58e09b49075240fe83423eb1dcd36"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52628.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.1.0"
                },
                {
                  "fixed": "4.19.316"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.279"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.198"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.132"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.54"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.5.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52628.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:43.901544653Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/1ad7b189cc1411048434e8595ffcbe7873b71082",
        "https://git.kernel.org/stable/c/28a97c43c9e32f437ebb8d6126f9bb7f3ca9521a",
        "https://git.kernel.org/stable/c/a7d86a77c33ba1c357a7504341172cc1507f0698",
        "https://git.kernel.org/stable/c/c8f292322ff16b9a2272a67de396c09a50e09dce",
        "https://git.kernel.org/stable/c/cf39c4f77a773a547ac2bcf30ecdd303bb0c80cb",
        "https://git.kernel.org/stable/c/d9ebfc0f21377690837ebbd119e679243e0099cc",
        "https://git.kernel.org/stable/c/fd94d9dadee58e09b49075240fe83423eb1dcd36",
        "https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52628.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-52628",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52628.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-52628",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 511663,
  "published_at": "2024-03-28T07:33:46.217+00:00"
}