{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2026-31576",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2026-31576",
    "idYear": 2026,
    "status": "PUBLISHED",
    "publishedAt": "2026-04-24T14:42:08.188Z",
    "updatedAt": "2026-06-14T17:42:00.110Z",
    "importedAt": "2026-10-24T01:58:02.025Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "media: hackrf: fix to not free memory after the device is registered in hackrf_probe()",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: hackrf: fix to not free memory after the device is registered in hackrf_probe()\n\nIn hackrf driver, the following race condition occurs:\n```\n\t\tCPU0\t\t\t\t\t\tCPU1\nhackrf_probe()\n  kzalloc(); // alloc hackrf_dev\n  ....\n  v4l2_device_register();\n  ....\n\t\t\t\t\t\tfd = sys_open(\"/path/to/dev\"); // open hackrf fd\n\t\t\t\t\t\t....\n  v4l2_device_unregister();\n  ....\n  kfree(); // free hackrf_dev\n  ....\n\t\t\t\t\t\tsys_ioctl(fd, ...);\n\t\t\t\t\t\t  v4l2_ioctl();\n\t\t\t\t\t\t    video_is_registered() // UAF!!\n\t\t\t\t\t\t....\n\t\t\t\t\t\tsys_close(fd);\n\t\t\t\t\t\t  v4l2_release() // UAF!!\n\t\t\t\t\t\t    hackrf_video_release()\n\t\t\t\t\t\t      kfree(); // DFB!!\n```\n\nWhen a V4L2 or video device is unregistered, the device node is removed so\nnew open() calls are blocked.\n\nHowever, file descriptors that are already open-and any in-flight I/O-do\nnot terminate immediately; they remain valid until the last reference is\ndropped and the driver's release() is invoked.\n\nTherefore, freeing device memory on the error path after hackrf_probe()\nhas registered dev it will lead to a race to use-after-free vuln, since\nthose already-open handles haven't been released yet.\n\nAnd since release() free memory too, race to use-after-free and\ndouble-free vuln occur.\n\nTo prevent this, if device is registered from probe(), it should be\nmodified to free memory only through release() rather than calling\nkfree() directly.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "8bc4a9ed85046c214458c9e82aea75d2f46cfffd",
              "status": "affected",
              "versionType": "git",
              "lessThan": "87b9685cca91ed715c39ba544715832d26a7f4b4"
            },
            {
              "version": "8bc4a9ed85046c214458c9e82aea75d2f46cfffd",
              "status": "affected",
              "versionType": "git",
              "lessThan": "131ec9046e1c8af101aebdaec4e8095e05f3312b"
            },
            {
              "version": "8bc4a9ed85046c214458c9e82aea75d2f46cfffd",
              "status": "affected",
              "versionType": "git",
              "lessThan": "67fd62e3efdc9dce01f76d95a745212f4feb38e6"
            },
            {
              "version": "8bc4a9ed85046c214458c9e82aea75d2f46cfffd",
              "status": "affected",
              "versionType": "git",
              "lessThan": "45cbaf5c7cdc5386d86377f0daf94a17a007fed0"
            },
            {
              "version": "8bc4a9ed85046c214458c9e82aea75d2f46cfffd",
              "status": "affected",
              "versionType": "git",
              "lessThan": "98a0a81ce78020c2522e0046f49d200de9778cb9"
            },
            {
              "version": "8bc4a9ed85046c214458c9e82aea75d2f46cfffd",
              "status": "affected",
              "versionType": "git",
              "lessThan": "07e9e674b6146b1f6fc41b1f54b8968bf2802824"
            },
            {
              "version": "8bc4a9ed85046c214458c9e82aea75d2f46cfffd",
              "status": "affected",
              "versionType": "git",
              "lessThan": "2145c71a8044362e82e9923f001ba2aeb771b848"
            },
            {
              "version": "8bc4a9ed85046c214458c9e82aea75d2f46cfffd",
              "status": "affected",
              "versionType": "git",
              "lessThan": "fcd1d70792a35c8a97414fe429f48311e41269c2"
            },
            {
              "version": "8bc4a9ed85046c214458c9e82aea75d2f46cfffd",
              "status": "affected",
              "versionType": "git",
              "lessThan": "3b7da2b4d0fe014eff181ed37e3bf832eb8ed258"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "4.4",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "4.4"
            },
            {
              "version": "5.10.258",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.209",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.175",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.136",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.83",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.18.24",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.18.*"
            },
            {
              "version": "6.19.14",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.19.*"
            },
            {
              "version": "7.0.1",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "7.0.*"
            },
            {
              "version": "7.1",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}