{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: edia: dvbdev: fix a use-after-free\n\nIn dvb_register_device, *pdvbdev is set equal to dvbdev, which is freed\nin several error-handling paths. However, *pdvbdev is not set to NULL\nafter dvbdev's deallocation, causing use-after-frees in many places,\nfor example, in the following call chain:\n\nbudget_register\n  |-> dvb_dmxdev_init\n        |-> dvb_register_device\n  |-> dvb_dmxdev_release\n        |-> dvb_unregister_device\n              |-> dvb_remove_device\n                    |-> dvb_device_put\n                          |-> kref_put\n\nWhen calling dvb_unregister_device, dmxdev->dvbdev (i.e. *pdvbdev in\ndvb_register_device) could point to memory that had been freed in\ndvb_register_device. Thereafter, this pointer is transferred to\nkref_put and triggering a use-after-free."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "drivers/media/dvb-core/dvbdev.c"
               ],
               "versions": [
                  {
                     "version": "b61901024776",
                     "lessThan": "d0f5c2833382",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "b61901024776",
                     "lessThan": "f20c3270f3ed",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "b61901024776",
                     "lessThan": "096237039d00",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "b61901024776",
                     "lessThan": "0d3fe80b6d17",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "b61901024776",
                     "lessThan": "437a111f79a2",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "b61901024776",
                     "lessThan": "779e8db7efb2",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "b61901024776",
                     "lessThan": "35674111a043",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "b61901024776",
                     "lessThan": "b7586e902128",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "b61901024776",
                     "lessThan": "8c64f4cdf4e6",
                     "status": "affected",
                     "versionType": "git"
                  }
               ]
            },
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "affected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "drivers/media/dvb-core/dvbdev.c"
               ],
               "versions": [
                  {
                     "version": "2.6.21",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "2.6.21",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.311",
                     "lessThanOrEqual": "4.19.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.273",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.214",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.153",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1.83",
                     "lessThanOrEqual": "6.1.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.6.23",
                     "lessThanOrEqual": "6.6.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.7.11",
                     "lessThanOrEqual": "6.7.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.8.2",
                     "lessThanOrEqual": "6.8.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.9",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/d0f5c28333822f9baa5280d813124920720fd856"
            },
            {
               "url": "https://git.kernel.org/stable/c/f20c3270f3ed5aa6919a87e4de9bf6c05fb57086"
            },
            {
               "url": "https://git.kernel.org/stable/c/096237039d00c839f3e3a5fe6d001bf0db45b644"
            },
            {
               "url": "https://git.kernel.org/stable/c/0d3fe80b6d175c220b3e252efc6c6777e700e98e"
            },
            {
               "url": "https://git.kernel.org/stable/c/437a111f79a2f5b2a5f21e27fdec6f40c8768712"
            },
            {
               "url": "https://git.kernel.org/stable/c/779e8db7efb22316c8581d6c229636d2f5694a62"
            },
            {
               "url": "https://git.kernel.org/stable/c/35674111a043b0482a9bc69da8850a83f465b07d"
            },
            {
               "url": "https://git.kernel.org/stable/c/b7586e902128e4fb7bfbb661cb52e4215a65637b"
            },
            {
               "url": "https://git.kernel.org/stable/c/8c64f4cdf4e6cc5682c52523713af8c39c94e6d5"
            }
         ],
         "title": "media: edia: dvbdev: fix a use-after-free",
         "x_generator": {
            "engine": "bippy-a5840b7849dd"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2024-27043",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
