{
  "id": "CVE-2025-21954",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21954",
  "published_at": "2025-04-01T15:46:55.226Z",
  "title": "netmem: prevent TX of unreadable skbs",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nnetmem: prevent TX of unreadable skbs\n\nCurrently on stable trees we have support for netmem/devmem RX but not\nTX. It is not safe to forward/redirect an RX unreadable netmem packet\ninto the device's TX path, as the device may call dma-mapping APIs on\ndma addrs that should not be passed to it.\n\nFix this by preventing the xmit of unreadable skbs.\n\nTested by configuring tc redirect:\n\nsudo tc qdisc add dev eth1 ingress\nsudo tc filter add dev eth1 ingress protocol ip prio 1 flower ip_proto \\\n\ttcp src_ip 192.168.1.12 action mirred egress redirect dev eth1\n\nBefore, I see unreadable skbs in the driver's TX path passed to dma\nmapping APIs.\n\nAfter, I don't see unreadable skbs in the driver's TX path passed to dma\nmapping APIs.",
  "cwe": "CWE-401",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc6:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.8,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 65249feb6b3df9e17bab5911ee56fa7b0971e231, \u003c 454825019d2f0c59e5174ece9e713f45ad80beff",
          "\u003e= 65249feb6b3df9e17bab5911ee56fa7b0971e231, \u003c 1c17c8ced25c5fbe424c7ad7ea11d33014a986b1",
          "\u003e= 65249feb6b3df9e17bab5911ee56fa7b0971e231, \u003c f3600c867c99a2cc8038680ecf211089c50e7971"
        ],
        "fixed_in": [
          "454825019d2f0c59e5174ece9e713f45ad80beff",
          "1c17c8ced25c5fbe424c7ad7ea11d33014a986b1",
          "f3600c867c99a2cc8038680ecf211089c50e7971"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.12"
        ],
        "fixed_in": [
          "0",
          "6.12.20",
          "6.13.8",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 454825019d2f0c59e5174ece9e713f45ad80beff or 1c17c8ced25c5fbe424c7ad7ea11d33014a986b1 or f3600c867c99a2cc8038680ecf211089c50e7971 or later.",
      "Upgrade Linux to 0 or 6.12.20 or 6.13.8 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
