Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48627
HistoryMar 02, 2024 - 9:31 p.m.

CVE-2022-48627 vt: fix memory overlapping when deleting chars in the buffer

2024-03-0221:31:48
Linux
www.cve.org
linux kernel
vulnerability
memory overlapping
data corruption
scr_memcpyw
scr_memmovew
hardware acceleration

7.9 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

10.4%

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

vt: fix memory overlapping when deleting chars in the buffer

A memory overlapping copy occurs when deleting a long line. This memory
overlapping copy can cause data corruption when scr_memcpyw is optimized
to memcpy because memcpy does not ensure its behavior if the destination
buffer overlaps with the source buffer. The line buffer is not always
broken, because the memcpy utilizes the hardware acceleration, whose
result is not deterministic.

Fix this problem by using replacing the scr_memcpyw with scr_memmovew.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/tty/vt/vt.c"
    ],
    "versions": [
      {
        "version": "81732c3b2fed",
        "lessThan": "c8686c014b5e",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "81732c3b2fed",
        "lessThan": "815be99d934e",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "81732c3b2fed",
        "lessThan": "bfee93c9a6c3",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "81732c3b2fed",
        "lessThan": "57964a571025",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "81732c3b2fed",
        "lessThan": "14d2cc21ca62",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "81732c3b2fed",
        "lessThan": "39cdb68c64d8",
        "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/tty/vt/vt.c"
    ],
    "versions": [
      {
        "version": "3.7",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "3.7",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.19.312",
        "lessThanOrEqual": "4.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.274",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.132",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.56",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.18.13",
        "lessThanOrEqual": "5.18.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.19",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

7.9 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

10.4%