Lucene search

K
cvelistLinuxCVELIST:CVE-2023-52455
HistoryFeb 23, 2024 - 2:46 p.m.

CVE-2023-52455 iommu: Don't reserve 0-length IOVA region

2024-02-2314:46:18
Linux
www.cve.org
3
linux kernel
iova region reservation
firmware
display driver
vulnerability
warning

AI Score

7.3

Confidence

High

EPSS

0

Percentile

5.1%

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

iommu: Don’t reserve 0-length IOVA region

When the bootloader/firmware doesn’t setup the framebuffers, their
address and size are 0 in “iommu-addresses” property. If IOVA region is
reserved with 0 length, then it ends up corrupting the IOVA rbtree with
an entry which has pfn_hi < pfn_lo.
If we intend to use display driver in kernel without framebuffer then
it’s causing the display IOMMU mappings to fail as entire valid IOVA
space is reserved when address and length are passed as 0.
An ideal solution would be firmware removing the “iommu-addresses”
property and corresponding “memory-region” if display is not present.
But the kernel should be able to handle this by checking for size of
IOVA region and skipping the IOVA reservation if size is 0. Also, add
a warning if firmware is requesting 0-length IOVA region reservation.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/iommu/of_iommu.c"
    ],
    "versions": [
      {
        "version": "a5bf3cfce8cb",
        "lessThan": "98b8a550da83",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "a5bf3cfce8cb",
        "lessThan": "5e23e283910c",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "a5bf3cfce8cb",
        "lessThan": "bb57f6705960",
        "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/of_iommu.c"
    ],
    "versions": [
      {
        "version": "6.3",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.3",
        "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"
      }
    ]
  }
]

AI Score

7.3

Confidence

High

EPSS

0

Percentile

5.1%