{
  "id": "CVE-2025-21855",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21855",
  "published_at": "2025-03-12T09:42:09.251Z",
  "title": "ibmvnic: Don't reference skb after sending to VIOS",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 8.6,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/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\nibmvnic: Don't reference skb after sending to VIOS\n\nPreviously, after successfully flushing the xmit buffer to VIOS,\nthe tx_bytes stat was incremented by the length of the skb.\n\nIt is invalid to access the skb memory after sending the buffer to\nthe VIOS because, at any point after sending, the VIOS can trigger\nan interrupt to free this memory. A race between reading skb-\u003elen\nand freeing the skb is possible (especially during LPM) and will\nresult in use-after-free:\n ==================================================================\n BUG: KASAN: slab-use-after-free in ibmvnic_xmit+0x75c/0x1808 [ibmvnic]\n Read of size 4 at addr c00000024eb48a70 by task hxecom/14495\n \u003c...\u003e\n Call Trace:\n [c000000118f66cf0] [c0000000018cba6c] dump_stack_lvl+0x84/0xe8 (unreliable)\n [c000000118f66d20] [c0000000006f0080] print_report+0x1a8/0x7f0\n [c000000118f66df0] [c0000000006f08f0] kasan_report+0x128/0x1f8\n [c000000118f66f00] [c0000000006f2868] __asan_load4+0xac/0xe0\n [c000000118f66f20] [c0080000046eac84] ibmvnic_xmit+0x75c/0x1808 [ibmvnic]\n [c000000118f67340] [c0000000014be168] dev_hard_start_xmit+0x150/0x358\n \u003c...\u003e\n Freed by task 0:\n kasan_save_stack+0x34/0x68\n kasan_save_track+0x2c/0x50\n kasan_save_free_info+0x64/0x108\n __kasan_mempool_poison_object+0x148/0x2d4\n napi_skb_cache_put+0x5c/0x194\n net_tx_action+0x154/0x5b8\n handle_softirqs+0x20c/0x60c\n do_softirq_own_stack+0x6c/0x88\n \u003c...\u003e\n The buggy address belongs to the object at c00000024eb48a00 which\n  belongs to the cache skbuff_head_cache of size 224\n==================================================================",
  "cwe": "CWE-416",
  "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:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.8,
    "cna": 8.6,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 032c5e82847a2214c3196a90f0aeba0ce252de58, \u003c 501ac6a7e21b82e05207c6b4449812d82820f306",
          "\u003e= 032c5e82847a2214c3196a90f0aeba0ce252de58, \u003c 093b0e5c90592773863f300b908b741622eef597",
          "\u003e= 032c5e82847a2214c3196a90f0aeba0ce252de58, \u003c 25dddd01dcc8ef3acff964dbb32eeb0d89f098e9",
          "\u003e= 032c5e82847a2214c3196a90f0aeba0ce252de58, \u003c abaff2717470e4b5b7c0c3a90e128b211a23da09",
          "\u003e= 032c5e82847a2214c3196a90f0aeba0ce252de58, \u003c bdf5d13aa05ec314d4385b31ac974d6c7e0997c9"
        ],
        "fixed_in": [
          "501ac6a7e21b82e05207c6b4449812d82820f306",
          "093b0e5c90592773863f300b908b741622eef597",
          "25dddd01dcc8ef3acff964dbb32eeb0d89f098e9",
          "abaff2717470e4b5b7c0c3a90e128b211a23da09",
          "bdf5d13aa05ec314d4385b31ac974d6c7e0997c9"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "4.5"
        ],
        "fixed_in": [
          "0",
          "6.1.130",
          "6.6.80",
          "6.12.17",
          "6.13.5",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 501ac6a7e21b82e05207c6b4449812d82820f306 or 093b0e5c90592773863f300b908b741622eef597 or 25dddd01dcc8ef3acff964dbb32eeb0d89f098e9 or abaff2717470e4b5b7c0c3a90e128b211a23da09 or bdf5d13aa05ec314d4385b31ac974d6c7e0997c9 or later.",
      "Upgrade Linux to 0 or 6.1.130 or 6.6.80 or 6.12.17 or 6.13.5 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
