CVE-2025-38262
BaseFortify
Publication date: 2025-07-09
Last updated on: 2025-12-18
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | From 6.7 (inc) to 6.12.36 (inc) |
| debian | debian_linux | 11.0 |
| linux | kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-476 | The product dereferences a pointer that it expects to be valid but is NULL. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability occurs in the Linux kernel's uartlite serial driver when two uart device instances probe concurrently. A race condition happens where one thread begins registering the uart driver and allocates memory, but the other thread bypasses the registration and calls functions expecting the driver to be fully initialized. This leads to a null pointer dereference and causes a kernel panic.
How can this vulnerability impact me? :
The vulnerability can cause a kernel panic due to a null pointer dereference, which can crash the system or cause instability when multiple uart devices are probed simultaneously.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by monitoring the system logs for kernel panic messages related to uartlite driver issues, specifically null pointer dereferences during uart driver registration. You can check the kernel log for messages similar to: 'BUG: kernel NULL pointer dereference' and call traces involving uart_add_one_port or ulite_probe. Use the command: dmesg | grep -i 'uartlite\|BUG\|null pointer' to identify such issues.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, ensure that the uart driver registration is moved into the init function so that the uart_driver is always registered before the probe function is called. This prevents the concurrency race condition that leads to kernel panic. Applying the relevant kernel patch or updating to a kernel version where this fix is included is recommended.