{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-98160",
  "modified": "2026-10-07T17:22:01Z",
  "upstream": [
    "CVE-2026-98160"
  ],
  "published": "2026-09-25T13:07:13Z",
  "summary": "staging: rtl8723bs: fix mismatched free of HalData in rtw_sdio_if1_init()",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: rtl8723bs: fix mismatched free of HalData in rtw_sdio_if1_init()\n\npadapter->HalData is allocated via vzalloc(), but incorrectly freed\nusing kfree() in the rtw_sdio_if1_init() error path. Using kfree() to\nrelease this vmalloc-backed buffer can lead to memory corruption.\n\nUse rtw_hal_data_deinit() to pair the free correctly and free\nHalData with vfree().\n\nThe bug was first flagged by an experimental static analysis tool we\nare developing for kernel memory-management bugs. Manual inspection\nconfirms that the issue is still present in current mainline.\n\nAn x86_64 allyesconfig build showed no new warnings. As we do not have\nsuitable RTL8723BS SDIO hardware to test with, no runtime testing was\nable to be performed.",
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.188",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-98160"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/ff6d1ba247b5c62bdb678f1069abc86ad88a1402"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d6158333d630a1b21d8914feaf77a6f5deb185d9"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/6c017ab2b0e1b60b5be94636c94720347213d78b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/4520d673d49dabfd42c008a33889251025f7d6d5"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/423574feaed192063ef0cd0813fb85425f39e539"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/737c928ff5092d7e55128a232c231248fc993777"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/911190f0b9511c3c81f2f2484414c1ae26f636b3"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/264676418b726baca7be49171e306b6aa05cceb0"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-09-25T13:07:13Z"
  }
}
