In the Linux kernel, the following vulnerability has been resolved:
media: pvrusb2: fix memory leak in pvr_probe
The error handling code in pvr2hdwcreate forgets to unregister the v4l2 device. When pvr2hdwcreate returns back to pvr2contextcreate, it calls pvr2contextdestroy to destroy context, but mp->hdw is NULL, which leads to that pvr2hdwdestroy directly returns.
Fix this by adding v4l2deviceunregister to decrease the refcount of usb interface.
[
{
"signature_version": "v1",
"digest": {
"line_hashes": [
"268169711854888202124059838727796290998",
"311422414379750561120688475183275938759",
"234683067197324694684004141757755532619",
"212297076409905930449592767120693323105"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "drivers/media/usb/pvrusb2/pvrusb2-hdw.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bacb37bdc2a21c8f7fdc83dcc0dea2f4ca1341fb",
"id": "CVE-2022-49982-0b52bf8c"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "159644872243577759126997639186988698817",
"length": 8485.0
},
"deprecated": false,
"signature_type": "Function",
"target": {
"function": "pvr2_hdw_create",
"file": "drivers/media/usb/pvrusb2/pvrusb2-hdw.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f2f6e67522916f53ad8ccd4dbe68dcf76e9776e5",
"id": "CVE-2022-49982-0fb2b495"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "159644872243577759126997639186988698817",
"length": 8485.0
},
"deprecated": false,
"signature_type": "Function",
"target": {
"function": "pvr2_hdw_create",
"file": "drivers/media/usb/pvrusb2/pvrusb2-hdw.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@466b67c0543b2ae67814d053f6e29b39be6b33bb",
"id": "CVE-2022-49982-3a05af41"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "315613642583703172315369745531949206160",
"length": 8618.0
},
"deprecated": false,
"signature_type": "Function",
"target": {
"function": "pvr2_hdw_create",
"file": "drivers/media/usb/pvrusb2/pvrusb2-hdw.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ba7dd8a9686a61a34b3a7b922ce721378d4740d0",
"id": "CVE-2022-49982-3bac3cda"
},
{
"signature_version": "v1",
"digest": {
"line_hashes": [
"268169711854888202124059838727796290998",
"311422414379750561120688475183275938759",
"234683067197324694684004141757755532619",
"212297076409905930449592767120693323105"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "drivers/media/usb/pvrusb2/pvrusb2-hdw.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ba7dd8a9686a61a34b3a7b922ce721378d4740d0",
"id": "CVE-2022-49982-3c6cc872"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "107800294381919500830851693443955955441",
"length": 8532.0
},
"deprecated": false,
"signature_type": "Function",
"target": {
"function": "pvr2_hdw_create",
"file": "drivers/media/usb/pvrusb2/pvrusb2-hdw.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@491762b3250fb06a0c97b5198656ea48359eaeed",
"id": "CVE-2022-49982-578c33de"
},
{
"signature_version": "v1",
"digest": {
"line_hashes": [
"268169711854888202124059838727796290998",
"311422414379750561120688475183275938759",
"234683067197324694684004141757755532619",
"212297076409905930449592767120693323105"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "drivers/media/usb/pvrusb2/pvrusb2-hdw.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f2f6e67522916f53ad8ccd4dbe68dcf76e9776e5",
"id": "CVE-2022-49982-784cecec"
},
{
"signature_version": "v1",
"digest": {
"line_hashes": [
"268169711854888202124059838727796290998",
"311422414379750561120688475183275938759",
"234683067197324694684004141757755532619",
"212297076409905930449592767120693323105"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "drivers/media/usb/pvrusb2/pvrusb2-hdw.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@466b67c0543b2ae67814d053f6e29b39be6b33bb",
"id": "CVE-2022-49982-ac13e0d2"
},
{
"signature_version": "v1",
"digest": {
"line_hashes": [
"268169711854888202124059838727796290998",
"311422414379750561120688475183275938759",
"234683067197324694684004141757755532619",
"212297076409905930449592767120693323105"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "drivers/media/usb/pvrusb2/pvrusb2-hdw.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2fe46195d2f0d5d09ea65433aefe47a4d0d0ff4d",
"id": "CVE-2022-49982-ac644cfa"
},
{
"signature_version": "v1",
"digest": {
"line_hashes": [
"268169711854888202124059838727796290998",
"311422414379750561120688475183275938759",
"234683067197324694684004141757755532619",
"212297076409905930449592767120693323105"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "drivers/media/usb/pvrusb2/pvrusb2-hdw.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c02d2a91a85c4c4d05826cd1ea74a9b8d42e4280",
"id": "CVE-2022-49982-b1f848f4"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "171954604822272471825425986438927124128",
"length": 8676.0
},
"deprecated": false,
"signature_type": "Function",
"target": {
"function": "pvr2_hdw_create",
"file": "drivers/media/usb/pvrusb2/pvrusb2-hdw.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2fe46195d2f0d5d09ea65433aefe47a4d0d0ff4d",
"id": "CVE-2022-49982-d52db17d"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "159644872243577759126997639186988698817",
"length": 8485.0
},
"deprecated": false,
"signature_type": "Function",
"target": {
"function": "pvr2_hdw_create",
"file": "drivers/media/usb/pvrusb2/pvrusb2-hdw.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bacb37bdc2a21c8f7fdc83dcc0dea2f4ca1341fb",
"id": "CVE-2022-49982-d9ef1035"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "159644872243577759126997639186988698817",
"length": 8485.0
},
"deprecated": false,
"signature_type": "Function",
"target": {
"function": "pvr2_hdw_create",
"file": "drivers/media/usb/pvrusb2/pvrusb2-hdw.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@945a9a8e448b65bec055d37eba58f711b39f66f0",
"id": "CVE-2022-49982-da8f340b"
},
{
"signature_version": "v1",
"digest": {
"function_hash": "159644872243577759126997639186988698817",
"length": 8485.0
},
"deprecated": false,
"signature_type": "Function",
"target": {
"function": "pvr2_hdw_create",
"file": "drivers/media/usb/pvrusb2/pvrusb2-hdw.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c02d2a91a85c4c4d05826cd1ea74a9b8d42e4280",
"id": "CVE-2022-49982-dc918c7b"
},
{
"signature_version": "v1",
"digest": {
"line_hashes": [
"268169711854888202124059838727796290998",
"311422414379750561120688475183275938759",
"234683067197324694684004141757755532619",
"212297076409905930449592767120693323105"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "drivers/media/usb/pvrusb2/pvrusb2-hdw.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@945a9a8e448b65bec055d37eba58f711b39f66f0",
"id": "CVE-2022-49982-df69fff0"
},
{
"signature_version": "v1",
"digest": {
"line_hashes": [
"268169711854888202124059838727796290998",
"311422414379750561120688475183275938759",
"234683067197324694684004141757755532619",
"212297076409905930449592767120693323105"
],
"threshold": 0.9
},
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "drivers/media/usb/pvrusb2/pvrusb2-hdw.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@491762b3250fb06a0c97b5198656ea48359eaeed",
"id": "CVE-2022-49982-fbb33180"
}
]