In the Linux kernel, the following vulnerability has been resolved:
drm/radeon: Fix PCI device refcount leak in radeonatrmget_bios()
As comment of pcigetclass() says, it returns a pci_device with its refcount increased and decreased the refcount for the input parameter @from if it is not NULL.
If we break the loop in radeonatrmgetbios() with 'pdev' not NULL, we need to call pcidevput() to decrease the refcount. Add the missing pcidev_put() to avoid refcount leak.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50520.json"
}[
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c",
"function": "radeon_atrm_get_bios"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e738f82e5b1311e8fb3d1409491a6fcce6418fbe",
"id": "CVE-2022-50520-276b957d",
"digest": {
"length": 1173.0,
"function_hash": "92660918856176743426629945993961216195"
},
"signature_type": "Function"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c",
"function": "radeon_atrm_get_bios"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@88c6e0995c04b170563b5c894c50a3b2152e18c2",
"id": "CVE-2022-50520-341cf8d1",
"digest": {
"length": 1169.0,
"function_hash": "54750839394213945692243224805981930277"
},
"signature_type": "Function"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c",
"function": "radeon_atrm_get_bios"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@470a77989037c3ab2b08bf2d026d2c0ddc35ff5b",
"id": "CVE-2022-50520-5e9cbbbf",
"digest": {
"length": 1173.0,
"function_hash": "92660918856176743426629945993961216195"
},
"signature_type": "Function"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3991d98a8a07b71c02f3a39f77d6d9a7f575a5c4",
"id": "CVE-2022-50520-6b0b6270",
"digest": {
"threshold": 0.9,
"line_hashes": [
"281896231071064574653935914323876186357",
"75356077332568696886934821675329443717",
"266705884379158324360557250262459208289",
"222688599882240326699322994536248675865"
]
},
"signature_type": "Line"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6f28c7f67af4ef9bca580ab67ae2d4511797af56",
"id": "CVE-2022-50520-7086ec8f",
"digest": {
"threshold": 0.9,
"line_hashes": [
"281896231071064574653935914323876186357",
"75356077332568696886934821675329443717",
"266705884379158324360557250262459208289",
"222688599882240326699322994536248675865"
]
},
"signature_type": "Line"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c",
"function": "radeon_atrm_get_bios"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6f28c7f67af4ef9bca580ab67ae2d4511797af56",
"id": "CVE-2022-50520-70deeb36",
"digest": {
"length": 1173.0,
"function_hash": "92660918856176743426629945993961216195"
},
"signature_type": "Function"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@470a77989037c3ab2b08bf2d026d2c0ddc35ff5b",
"id": "CVE-2022-50520-7ec8063e",
"digest": {
"threshold": 0.9,
"line_hashes": [
"281896231071064574653935914323876186357",
"75356077332568696886934821675329443717",
"266705884379158324360557250262459208289",
"222688599882240326699322994536248675865"
]
},
"signature_type": "Line"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b9decada8749b606fd8b4f04a3d6c74f7983d7bc",
"id": "CVE-2022-50520-83fa0c93",
"digest": {
"threshold": 0.9,
"line_hashes": [
"281896231071064574653935914323876186357",
"75356077332568696886934821675329443717",
"266705884379158324360557250262459208289",
"222688599882240326699322994536248675865"
]
},
"signature_type": "Line"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a6cffe54064a5f6c2162a85af3c16c6b453eac4e",
"id": "CVE-2022-50520-861f91fa",
"digest": {
"threshold": 0.9,
"line_hashes": [
"281896231071064574653935914323876186357",
"75356077332568696886934821675329443717",
"266705884379158324360557250262459208289",
"222688599882240326699322994536248675865"
]
},
"signature_type": "Line"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@88c6e0995c04b170563b5c894c50a3b2152e18c2",
"id": "CVE-2022-50520-88f5b09f",
"digest": {
"threshold": 0.9,
"line_hashes": [
"281896231071064574653935914323876186357",
"75356077332568696886934821675329443717",
"266705884379158324360557250262459208289",
"222688599882240326699322994536248675865"
]
},
"signature_type": "Line"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c",
"function": "radeon_atrm_get_bios"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3991d98a8a07b71c02f3a39f77d6d9a7f575a5c4",
"id": "CVE-2022-50520-a0f6480f",
"digest": {
"length": 1173.0,
"function_hash": "92660918856176743426629945993961216195"
},
"signature_type": "Function"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c",
"function": "radeon_atrm_get_bios"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a6cffe54064a5f6c2162a85af3c16c6b453eac4e",
"id": "CVE-2022-50520-a461bf4e",
"digest": {
"length": 1169.0,
"function_hash": "54750839394213945692243224805981930277"
},
"signature_type": "Function"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c",
"function": "radeon_atrm_get_bios"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1079df6acf56f99d86b0081a38c84701412cc90e",
"id": "CVE-2022-50520-a73f15c7",
"digest": {
"length": 1173.0,
"function_hash": "92660918856176743426629945993961216195"
},
"signature_type": "Function"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e738f82e5b1311e8fb3d1409491a6fcce6418fbe",
"id": "CVE-2022-50520-bb55f988",
"digest": {
"threshold": 0.9,
"line_hashes": [
"281896231071064574653935914323876186357",
"75356077332568696886934821675329443717",
"266705884379158324360557250262459208289",
"222688599882240326699322994536248675865"
]
},
"signature_type": "Line"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@725a521a18734f65de05b8d353b5bd0d3ca4c37a",
"id": "CVE-2022-50520-bee79570",
"digest": {
"threshold": 0.9,
"line_hashes": [
"281896231071064574653935914323876186357",
"75356077332568696886934821675329443717",
"266705884379158324360557250262459208289",
"222688599882240326699322994536248675865"
]
},
"signature_type": "Line"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c",
"function": "radeon_atrm_get_bios"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@725a521a18734f65de05b8d353b5bd0d3ca4c37a",
"id": "CVE-2022-50520-c300e671",
"digest": {
"length": 1169.0,
"function_hash": "54750839394213945692243224805981930277"
},
"signature_type": "Function"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c",
"function": "radeon_atrm_get_bios"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b9decada8749b606fd8b4f04a3d6c74f7983d7bc",
"id": "CVE-2022-50520-d8bedfdc",
"digest": {
"length": 1169.0,
"function_hash": "54750839394213945692243224805981930277"
},
"signature_type": "Function"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/radeon/radeon_bios.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1079df6acf56f99d86b0081a38c84701412cc90e",
"id": "CVE-2022-50520-f525c58e",
"digest": {
"threshold": 0.9,
"line_hashes": [
"281896231071064574653935914323876186357",
"75356077332568696886934821675329443717",
"266705884379158324360557250262459208289",
"222688599882240326699322994536248675865"
]
},
"signature_type": "Line"
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50520.json"