Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48894
HistoryAug 21, 2024 - 6:10 a.m.

CVE-2022-48894 iommu/arm-smmu-v3: Don't unregister on shutdown

2024-08-2106:10:26
Linux
www.cve.org
1
linux kernel
vulnerability
cve-2022-48894
iommu
arm-smmu-v3
shutdown
arm_smmu_device_disable

EPSS

0

Percentile

9.5%

In the Linux kernel, the following vulnerability has been resolved:

iommu/arm-smmu-v3: Don’t unregister on shutdown

Similar to SMMUv2, this driver calls iommu_device_unregister() from the
shutdown path, which removes the IOMMU groups with no coordination
whatsoever with their users - shutdown methods are optional in device
drivers. This can lead to NULL pointer dereferences in those drivers’
DMA API calls, or worse.

Instead of calling the full arm_smmu_device_remove() from
arm_smmu_device_shutdown(), let’s pick only the relevant function call -
arm_smmu_device_disable() - more or less the reverse of
arm_smmu_device_reset() - and call just that from the shutdown path.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c"
    ],
    "versions": [
      {
        "version": "57365a04c921",
        "lessThan": "ead3e6c79479",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "57365a04c921",
        "lessThan": "32ea2c57dc21",
        "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/iommu/arm/arm-smmu-v3/arm-smmu-v3.c"
    ],
    "versions": [
      {
        "version": "6.1",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.1",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.7",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.2",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

9.5%