Skip to content
Heist/ feed
Back to feed
UnratedFix available

xtensa: simdisk: add input size check in proc_write_simdisk

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: xtensa: simdisk: add input size check in proc_write_simdisk A malicious user could pass an arbitrarily bad value to memdup_user_nul(), potentially causing kernel crash. This follows the same pattern as commit ee76746387f6 ("netdevsim: prevent bad user input in nsim_dev_health_break_write()")

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.157, 6.12.54, 6.17.4, 6.6.113
CVEs
CVE-2025-40193
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 10:24 UTC · Revision 1

Source evidence

xtensa: simdisk: add input size check in proc_write_simdisk

core-osv · Original source

Published 12 Nov 2025, 21:56 UTC

In the Linux kernel, the following vulnerability has been resolved: xtensa: simdisk: add input size check in proc_write_simdisk A malicious user could pass an arbitrarily bad value to memdup_user_nul(), potentially causing kernel crash. This follows the same pattern as commit ee76746387f6 ("netdevsim: prevent bad user input in nsim_dev_health_break_write()")

osv:CVE-2025-40193

Kernel

Fixed versions: 6.1.157, 6.6.113, 6.12.54, 6.17.4

Complete source record
{
  "id": "6a361111f0927c79118108405297eede5965af9db9d6e09b19156a87b0679862",
  "url": "https://osv.dev/vulnerability/CVE-2025-40193",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "xtensa: simdisk: add input size check in proc_write_simdisk",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: xtensa: simdisk: add input size check in proc_write_simdisk A malicious user could pass an arbitrarily bad value to memdup_user_nul(), potentially causing kernel crash. This follows the same pattern as commit ee76746387f6 (\"netdevsim: prevent bad user input in nsim_dev_health_break_write()\")",
    "evidence": "osv:CVE-2025-40193",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.157",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.113",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.54",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.17.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-40193",
      "aliases": [
        "CVE-2025-40193"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "b6c7e873daf765e41233b9752083b66442703b7a"
                },
                {
                  "fixed": "f40405ccfb87b71175f2d5d004c0b8a0aebcc2cf"
                },
                {
                  "fixed": "151bd88859474cdaccc1e4c8b21fbf72dbba2ab4"
                },
                {
                  "fixed": "d381de7fd4cdc928ede96987dc64b133e6480dd6"
                },
                {
                  "fixed": "a0c2c36d864ef3676b05cfd8c58b72ee3214cb1a"
                },
                {
                  "fixed": "5d5f08fd0cd970184376bee07d59f635c8403f63"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40193.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.9.0"
                },
                {
                  "fixed": "6.1.157"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.113"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.54"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.17.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40193.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.841392325Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/151bd88859474cdaccc1e4c8b21fbf72dbba2ab4",
        "https://git.kernel.org/stable/c/5d5f08fd0cd970184376bee07d59f635c8403f63",
        "https://git.kernel.org/stable/c/a0c2c36d864ef3676b05cfd8c58b72ee3214cb1a",
        "https://git.kernel.org/stable/c/d381de7fd4cdc928ede96987dc64b133e6480dd6",
        "https://git.kernel.org/stable/c/f40405ccfb87b71175f2d5d004c0b8a0aebcc2cf",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40193.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-40193",
        "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/2025/40xxx/CVE-2025-40193.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-40193",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 494484,
  "published_at": "2025-11-12T21:56:31.751+00:00"
}