Memory Access Vulnerability in Linux Kernel Affecting PCMCIADrivers
CVE-2025-39920
What is CVE-2025-39920?
This vulnerability arises in the Linux kernel's handling of memory during the validation of PCMCIA memory intervals. The function do_validate_mem() fails to account for errors returned from the add_interval() function. In scenarios where kmalloc() cannot allocate memory, a null pointer could be added to the linked list, leading to illegal memory access during subsequent calls to sub_interval(). Recent patches have introduced error handling to ensure that any failure in add_interval() results in an early exit with an appropriate error code, thus mitigating risks of vulnerabilities that can be exploited.
Affected Version(s)
Linux 7b4884ca8853a638df0eb5d251d80d67777b8b1a < 5b60ed401b47897352c520bc724c85aa908dedcc
Linux 7b4884ca8853a638df0eb5d251d80d67777b8b1a
Linux 7b4884ca8853a638df0eb5d251d80d67777b8b1a < 85be7ef8c8e792a414940a38d94565dd48d2f236