Skip to content
Heist/ feed
Back to feed
HighFix available

netfilter: complete validation of user input

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: netfilter: complete validation of user input In my recent commit, I missed that do_replace() handlers use copy_from_sockptr() (which I fixed), followed by unsafe copy_from_sockptr_offset() calls. In all functions, we can perform the @optlen validation before even calling xt_alloc_table_info() with the following check: if ((u64)optlen < (u64)tmp.size + sizeof(tmp)) return -EINVAL;

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.216, 5.15.156, 6.1.87, 6.6.28, 6.8.7
CVEs
CVE-2024-35962
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 20:31 UTC · Revision 1

Source evidence

netfilter: complete validation of user input

core-osv · Original source

Published 20 May 2024, 09:41 UTC

In the Linux kernel, the following vulnerability has been resolved: netfilter: complete validation of user input In my recent commit, I missed that do_replace() handlers use copy_from_sockptr() (which I fixed), followed by unsafe copy_from_sockptr_offset() calls. In all functions, we can perform the @optlen validation before even calling xt_alloc_table_info() with the following check: if ((u64)optlen < (u64)tmp.size + sizeof(tmp)) return -EINVAL;

osv:CVE-2024-35962

Kernel

Fixed versions: 5.10.216, 5.15.156, 6.1.87, 6.6.28, 6.8.7

Complete source record
{
  "id": "db2f425568fb00eb5ad7e4de5f29cee8a8fca238ad20add9e5683231a3be465e",
  "url": "https://osv.dev/vulnerability/CVE-2024-35962",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "netfilter: complete validation of user input",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: netfilter: complete validation of user input In my recent commit, I missed that do_replace() handlers use copy_from_sockptr() (which I fixed), followed by unsafe copy_from_sockptr_offset() calls. In all functions, we can perform the @optlen validation before even calling xt_alloc_table_info() with the following check: if ((u64)optlen < (u64)tmp.size + sizeof(tmp)) return -EINVAL;",
    "evidence": "osv:CVE-2024-35962",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.216",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.156",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.87",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.28",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.8.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-35962",
      "aliases": [
        "CVE-2024-35962"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0f038242b77ddfc505bf4163d4904c1abd2e74d6"
                },
                {
                  "fixed": "cf4bc359b76144a3dd55d7c09464ef4c5f2b2b05"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "440e948cf0eff32cfe322dcbca3f2525354b159b"
                },
                {
                  "fixed": "97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "18aae2cb87e5faa9c5bd865260ceadac60d5a6c5"
                },
                {
                  "fixed": "c760089aa98289b4b88a7ff5a62dd92845adf223"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "81d51b9b7c95e791ba3c1a2dd77920a9d3b3f525"
                },
                {
                  "fixed": "89242d9584c342cb83311b598d9e6b82572eadf8"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "58f2bfb789e6bd3bc24a2c9c1580f3c67aec3018"
                },
                {
                  "fixed": "562b7245131f6e9f1d280c8b5a8750f03edfc05c"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0c83842df40f86e529db6842231154772c20edcc"
                },
                {
                  "fixed": "65acf6e0501ac8880a4f73980d01b5d27648b956"
                }
              ]
            }
          ],
          "versions": [
            "v5.10.215",
            "v5.15.155",
            "v5.15.154",
            "v6.1.86",
            "v6.1.85",
            "v6.6.27",
            "v6.6.26",
            "v6.8.6",
            "v6.8.5"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35962.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.10.215"
                },
                {
                  "fixed": "5.10.216"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.15.154"
                },
                {
                  "fixed": "5.15.156"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.1.85"
                },
                {
                  "fixed": "6.1.87"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.6.26"
                },
                {
                  "fixed": "6.6.28"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.8.5"
                },
                {
                  "fixed": "6.8.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35962.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.446560051Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-265688.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-613116.html",
        "https://git.kernel.org/stable/c/562b7245131f6e9f1d280c8b5a8750f03edfc05c",
        "https://git.kernel.org/stable/c/65acf6e0501ac8880a4f73980d01b5d27648b956",
        "https://git.kernel.org/stable/c/89242d9584c342cb83311b598d9e6b82572eadf8",
        "https://git.kernel.org/stable/c/97dab36e57c64106e1c8ebd66cbf0d2d1e52d6b7",
        "https://git.kernel.org/stable/c/c760089aa98289b4b88a7ff5a62dd92845adf223",
        "https://git.kernel.org/stable/c/cf4bc359b76144a3dd55d7c09464ef4c5f2b2b05",
        "https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35962.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-35962",
        "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/2024/35xxx/CVE-2024-35962.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-35962",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 489880,
  "published_at": "2024-05-20T09:41:53.207+00:00"
}