title: vt: fix memory overlapping when deleting chars in the buffer
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.
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
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
versions:
version: 3.7, status: affected
version: 0, lessThan: 3.7, 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
}
