Back

MEDIUM

vt: fix memory overlapping when deleting chars in the buffer

Published Mar 2, 2024

Description

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.

Affected products

Remediation

Red Hat mitigation

Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.

References (13)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner Linux
Published Mar 2, 2024
Updated May 11, 2026
Reserved Feb 25, 2024
CISA Vulnrichment
Updated Mar 12, 2024
NVD
Status Analyzed
Modified Jun 17, 2026
Red Hat
Severity Moderate
Public date Mar 2, 2024
ENISA EUVD
Assigner Linux
Published Mar 2, 2024
Updated May 11, 2026
Exploited since n/a
EUVD-2022-51322