Lucene search

K
cvelistLinuxCVELIST:CVE-2023-52857
HistoryMay 21, 2024 - 3:31 p.m.

CVE-2023-52857 drm/mediatek: Fix coverity issue with unintentional integer overflow

2024-05-2115:31:51
Linux
www.cve.org
linux kernel
vulnerability
drm/mediatek
coverity issue
integer overflow
multiplier calculation
dma_addr_t variable

6.6 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%

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

drm/mediatek: Fix coverity issue with unintentional integer overflow

  1. Instead of multiplying 2 variable of different types. Change to
    assign a value of one variable and then multiply the other variable.

  2. Add a int variable for multiplier calculation instead of calculating
    different types multiplier with dma_addr_t variable directly.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/gpu/drm/mediatek/mtk_drm_gem.c",
      "drivers/gpu/drm/mediatek/mtk_drm_plane.c"
    ],
    "versions": [
      {
        "version": "1a64a7aff8da",
        "lessThan": "0d8a1df39d3f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1a64a7aff8da",
        "lessThan": "96312a251d4d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1a64a7aff8da",
        "lessThan": "b0b0d811eac6",
        "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/gpu/drm/mediatek/mtk_drm_gem.c",
      "drivers/gpu/drm/mediatek/mtk_drm_plane.c"
    ],
    "versions": [
      {
        "version": "5.14",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.14",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.5.12",
        "lessThanOrEqual": "6.5.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.2",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.7",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.6 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%

Related for CVELIST:CVE-2023-52857