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

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-02)
- Published: 2024-03-02T21:31:48.383Z
- Modified: 2026-06-17T05:15:45.403Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 81732c3b2fede049a692e58a7ceabb6d18ffb18c before c8686c014b5e872ba7e334f33ca553f14446fc29; from 81732c3b2fede049a692e58a7ceabb6d18ffb18c before 815be99d934e3292906536275f2b8d5131cdf52c; from 81732c3b2fede049a692e58a7ceabb6d18ffb18c before bfee93c9a6c395f9aa62268f1cedf64999844926; from 81732c3b2fede049a692e58a7ceabb6d18ffb18c before 57964a5710252bc82fe22d9fa98c180c58c20244; from 81732c3b2fede049a692e58a7ceabb6d18ffb18c before 14d2cc21ca622310babf373e3a8f0b40acfe8265; from 81732c3b2fede049a692e58a7ceabb6d18ffb18c before 39cdb68c64d84e71a4a717000b6e5de208ee60cc; 3.7 (not affected: before 3.7; from 4.19.312 up to 4.19.*; from 5.4.274 up to 5.4.*; from 5.10.132 up to 5.10.*; from 5.15.56 up to 5.15.*; from 5.18.13 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 3.7 up to 4.19.312; from 4.20 before 5.4.274; from 5.5 before 5.10.132; from 5.11 before 5.15.56; from 5.16 before 5.18.13; 5.19
- debian debian_linux: 10.0

## References

- <https://git.kernel.org/stable/c/c8686c014b5e872ba7e334f33ca553f14446fc29> (patch)
- <https://git.kernel.org/stable/c/815be99d934e3292906536275f2b8d5131cdf52c> (patch)
- <https://git.kernel.org/stable/c/bfee93c9a6c395f9aa62268f1cedf64999844926> (patch)
- <https://git.kernel.org/stable/c/57964a5710252bc82fe22d9fa98c180c58c20244> (patch)
- <https://git.kernel.org/stable/c/14d2cc21ca622310babf373e3a8f0b40acfe8265> (patch)
- <https://git.kernel.org/stable/c/39cdb68c64d84e71a4a717000b6e5de208ee60cc> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html> (mailing-list)

## Sources

- CVE List: [CVE-2022-48627](https://www.cve.org/CVERecord?id=CVE-2022-48627), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-48627](https://nvd.nist.gov/vuln/detail/CVE-2022-48627), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-48627 · Whole record: https://cve.day/CVE-2022-48627.json · Rebuilt by cve.day 2026-11-25T22:58:19.749Z
