In the Linux kernel, the following vulnerability has been resolved:
iommu/amd: Fix pci device refcount leak in ppr_notifier()
As comment of pcigetdomainbusandslot() says, it returns a pci device with refcount increment, when finish using it, the caller must decrement the reference count by calling pcidevput(). So call it before returning from pprnotifier() to avoid refcount leak.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50505.json"
}[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"68016262647493257424932172453326562241",
"183316853883882267944027009791723446965",
"91130221530822733227639830289982790617",
"307969509158402087690181486111176976326"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50505-12305549",
"target": {
"file": "drivers/iommu/amd/iommu_v2.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6e501b3fd7a2e1c4372d72bc70717aaca2beb8a5"
},
{
"signature_version": "v1",
"digest": {
"length": 1510.0,
"function_hash": "3159154552299564285786357316690610135"
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50505-19b20476",
"target": {
"function": "ppr_notifier",
"file": "drivers/iommu/amd_iommu_v2.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8581ec1feb895ff596fe3d326d9ba320083290aa"
},
{
"digest": {
"length": 1464.0,
"function_hash": "178935007992844426872767402478946458510"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50505-33f8de7a",
"target": {
"function": "ppr_notifier",
"file": "drivers/iommu/amd/iommu_v2.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@902cc2507091a81643502d8ceb0e2f105e902518"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"68016262647493257424932172453326562241",
"183316853883882267944027009791723446965",
"91130221530822733227639830289982790617",
"307969509158402087690181486111176976326"
]
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50505-54be5449",
"target": {
"file": "drivers/iommu/amd/iommu_v2.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@03f51c72997559e73b327608f0cccfded715c9a0"
},
{
"signature_version": "v1",
"digest": {
"length": 1427.0,
"function_hash": "269454924167908056211630529221611935856"
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50505-7ce6babd",
"target": {
"function": "ppr_notifier",
"file": "drivers/iommu/amd/iommu_v2.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@03f51c72997559e73b327608f0cccfded715c9a0"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"68016262647493257424932172453326562241",
"183316853883882267944027009791723446965",
"91130221530822733227639830289982790617",
"307969509158402087690181486111176976326"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50505-8dfa9bb8",
"target": {
"file": "drivers/iommu/amd/iommu_v2.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b0637f4bd426925f5c3a15e8f8e36190fe06bac5"
},
{
"digest": {
"length": 1464.0,
"function_hash": "178935007992844426872767402478946458510"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50505-93138237",
"target": {
"function": "ppr_notifier",
"file": "drivers/iommu/amd/iommu_v2.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6cf0981c2233f97d56938d9d61845383d6eb227c"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"68016262647493257424932172453326562241",
"183316853883882267944027009791723446965",
"91130221530822733227639830289982790617",
"307969509158402087690181486111176976326"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50505-9562ecce",
"target": {
"file": "drivers/iommu/amd/iommu_v2.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6cf0981c2233f97d56938d9d61845383d6eb227c"
},
{
"digest": {
"length": 1510.0,
"function_hash": "3159154552299564285786357316690610135"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50505-96bf3c36",
"target": {
"function": "ppr_notifier",
"file": "drivers/iommu/amd_iommu_v2.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@efd50c65fd1cdef63eb58825f3fe72496443764c"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"68016262647493257424932172453326562241",
"183316853883882267944027009791723446965",
"91130221530822733227639830289982790617",
"307969509158402087690181486111176976326"
]
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50505-9e5dc90e",
"target": {
"file": "drivers/iommu/amd_iommu_v2.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8581ec1feb895ff596fe3d326d9ba320083290aa"
},
{
"signature_version": "v1",
"digest": {
"length": 1464.0,
"function_hash": "178935007992844426872767402478946458510"
},
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50505-9edaeb73",
"target": {
"function": "ppr_notifier",
"file": "drivers/iommu/amd/iommu_v2.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b0637f4bd426925f5c3a15e8f8e36190fe06bac5"
},
{
"digest": {
"length": 1427.0,
"function_hash": "269454924167908056211630529221611935856"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50505-a453e66f",
"target": {
"function": "ppr_notifier",
"file": "drivers/iommu/amd/iommu_v2.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6e501b3fd7a2e1c4372d72bc70717aaca2beb8a5"
},
{
"digest": {
"length": 1506.0,
"function_hash": "7596842131965264222548440763833818049"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2022-50505-b9b8ef99",
"target": {
"function": "ppr_notifier",
"file": "drivers/iommu/amd_iommu_v2.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bdb2113dd8f17a3cc84a2b4be4968a849f69ec72"
},
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"68016262647493257424932172453326562241",
"183316853883882267944027009791723446965",
"91130221530822733227639830289982790617",
"307969509158402087690181486111176976326"
]
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50505-c21cb1ca",
"target": {
"file": "drivers/iommu/amd_iommu_v2.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@efd50c65fd1cdef63eb58825f3fe72496443764c"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"68016262647493257424932172453326562241",
"183316853883882267944027009791723446965",
"91130221530822733227639830289982790617",
"307969509158402087690181486111176976326"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50505-c54475d0",
"target": {
"file": "drivers/iommu/amd/iommu_v2.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@902cc2507091a81643502d8ceb0e2f105e902518"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"68016262647493257424932172453326562241",
"183316853883882267944027009791723446965",
"91130221530822733227639830289982790617",
"307969509158402087690181486111176976326"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2022-50505-e60f8e13",
"target": {
"file": "drivers/iommu/amd_iommu_v2.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bdb2113dd8f17a3cc84a2b4be4968a849f69ec72"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50505.json"