Linux Kernel Use-After-Free Vulnerability in Rose Protocol Implementation
CVE-2025-38377
What is CVE-2025-38377?
A use-after-free vulnerability exists within the Linux kernel's rose protocol implementation. Specifically, flaws in the 'rose_rt_device_down()' function can lead to unintentional access to freed memory regions. Two critical issues have been identified: the loop bounds are altered during execution, leading to skipped entries in the neighbour array, and the incrementing of the loop index while modifying the array shifts unchecked elements, leaving them dangling. This mishap can cause software to erroneously access freed pointer references, potentially leading to unpredictable behavior and security risks. A fix ensures iterating backward through the array with a consistent loop bound, addressing the issue comprehensively.
Affected Version(s)
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 94e0918e39039c47ddceb609500817f7266be756
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 2b952dbb32fef835756f07ff0cd77efbb836dfea