Skip to content
Heist/ feed
Back to feed
MediumFix available

vt: fix memory overlapping when deleting chars in the buffer

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.19.312, 5.10.132, 5.15.56, 5.18.13, 5.4.274
CVEs
CVE-2022-48627
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 02:44 UTC · Revision 1

Source evidence

vt: fix memory overlapping when deleting chars in the buffer

core-osv · Original source

Published 2 Mar 2024, 21:31 UTC

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.

osv:CVE-2022-48627

Kernel

Fixed versions: 4.19.312, 5.4.274, 5.10.132, 5.15.56, 5.18.13

Complete source record
{
  "id": "3acc73694f0f295ba3f05dbb74dba918451d27502bc671c2f4153288b9ee173d",
  "url": "https://osv.dev/vulnerability/CVE-2022-48627",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "vt: fix memory overlapping when deleting chars in the buffer",
    "summary": "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.",
    "evidence": "osv:CVE-2022-48627",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.19.312",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.274",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.132",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.56",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.18.13",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-48627",
      "aliases": [
        "CVE-2022-48627"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "81732c3b2fede049a692e58a7ceabb6d18ffb18c"
                },
                {
                  "fixed": "c8686c014b5e872ba7e334f33ca553f14446fc29"
                },
                {
                  "fixed": "815be99d934e3292906536275f2b8d5131cdf52c"
                },
                {
                  "fixed": "bfee93c9a6c395f9aa62268f1cedf64999844926"
                },
                {
                  "fixed": "57964a5710252bc82fe22d9fa98c180c58c20244"
                },
                {
                  "fixed": "14d2cc21ca622310babf373e3a8f0b40acfe8265"
                },
                {
                  "fixed": "39cdb68c64d84e71a4a717000b6e5de208ee60cc"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48627.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.7.0"
                },
                {
                  "fixed": "4.19.312"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.274"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.132"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.56"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "5.18.13"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48627.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.843821090Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/14d2cc21ca622310babf373e3a8f0b40acfe8265",
        "https://git.kernel.org/stable/c/39cdb68c64d84e71a4a717000b6e5de208ee60cc",
        "https://git.kernel.org/stable/c/57964a5710252bc82fe22d9fa98c180c58c20244",
        "https://git.kernel.org/stable/c/815be99d934e3292906536275f2b8d5131cdf52c",
        "https://git.kernel.org/stable/c/bfee93c9a6c395f9aa62268f1cedf64999844926",
        "https://git.kernel.org/stable/c/c8686c014b5e872ba7e334f33ca553f14446fc29",
        "https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48627.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-48627",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48627.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-48627",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 499793,
  "published_at": "2024-03-02T21:31:48.383+00:00"
}