{
   "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: pvrusb2: fix use after free on context disconnection\n\nUpon module load, a kthread is created targeting the\npvr2_context_thread_func function, which may call pvr2_context_destroy\nand thus call kfree() on the context object. However, that might happen\nbefore the usb hub_event handler is able to notify the driver. This\npatch adds a sanity check before the invalid read reported by syzbot,\nwithin the context disconnection call stack."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "drivers/media/usb/pvrusb2/pvrusb2-context.c"
               ],
               "versions": [
                  {
                     "version": "e5be15c63804",
                     "lessThan": "ec36c134dd02",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "e5be15c63804",
                     "lessThan": "47aa8fcd5e8b",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "e5be15c63804",
                     "lessThan": "3233d8bf7893",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "e5be15c63804",
                     "lessThan": "ec3634ebe23f",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "e5be15c63804",
                     "lessThan": "30773ea47d41",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "e5be15c63804",
                     "lessThan": "2cf0005d3155",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "e5be15c63804",
                     "lessThan": "437b5f57732b",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "e5be15c63804",
                     "lessThan": "ded85b0c0edd",
                     "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/usb/pvrusb2/pvrusb2-context.c"
               ],
               "versions": [
                  {
                     "version": "2.6.26",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "2.6.26",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.306",
                     "lessThanOrEqual": "4.19.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.268",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.209",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.148",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1.75",
                     "lessThanOrEqual": "6.1.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.6.14",
                     "lessThanOrEqual": "6.6.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.7.2",
                     "lessThanOrEqual": "6.7.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.8",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/ec36c134dd020d28e312c2f1766f85525e747aab"
            },
            {
               "url": "https://git.kernel.org/stable/c/47aa8fcd5e8b5563af4042a00f25ba89bef8f33d"
            },
            {
               "url": "https://git.kernel.org/stable/c/3233d8bf7893550045682192cb227af7fa3defeb"
            },
            {
               "url": "https://git.kernel.org/stable/c/ec3634ebe23fc3c44ebc67c6d25917300bc68c08"
            },
            {
               "url": "https://git.kernel.org/stable/c/30773ea47d41773f9611ffb4ebc9bda9d19a9e7e"
            },
            {
               "url": "https://git.kernel.org/stable/c/2cf0005d315549b8d2b940ff96a66c2a889aa795"
            },
            {
               "url": "https://git.kernel.org/stable/c/437b5f57732bb4cc32cc9f8895d2010ee9ff521c"
            },
            {
               "url": "https://git.kernel.org/stable/c/ded85b0c0edd8f45fec88783d7555a5b982449c1"
            }
         ],
         "title": "media: pvrusb2: fix use after free on context disconnection",
         "x_generator": {
            "engine": "bippy-a5840b7849dd"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2023-52445",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
