vt: fix memory overlapping when deleting chars in the buffer
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 81732c3b2fede049a692e58a7ceabb6d18ffb18c · < 39cdb68c64d84e71a4a717000b6e5de208ee60cc| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's vt component can perform an overlapping memory copy when deleting characters from a long line. If scr_memcpyw is optimized to memcpy, this can corrupt the line buffer; the input does not specify attacker access requirements or user interaction.
Engineers running the Linux kernel should check their versions for this issue; affected versions are not specified.