CVE-2025-38214
BaseFortify
Publication date: 2025-07-04
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 2.6.13 (inc) to 5.4.295 (exc) |
| linux | linux_kernel | From 5.5 (inc) to 5.10.239 (exc) |
| linux | linux_kernel | From 5.11 (inc) to 5.15.186 (exc) |
| linux | linux_kernel | From 5.16 (inc) to 6.1.142 (exc) |
| linux | linux_kernel | From 6.2 (inc) to 6.6.95 (exc) |
| linux | linux_kernel | From 6.7 (inc) to 6.12.35 (exc) |
| linux | linux_kernel | From 6.13 (inc) to 6.15.4 (exc) |
| linux | linux_kernel | 2.6.12 |
| linux | linux_kernel | 2.6.12 |
| linux | linux_kernel | 2.6.12 |
| linux | linux_kernel | 2.6.12 |
| linux | linux_kernel | 2.6.12 |
| debian | debian_linux | 11.0 |
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 framebuffer device (fbdev) subsystem. Specifically, when the function fb_set_var() tries to add a new video mode using fb_add_videomode(), it may fail to allocate memory. If this happens, fb_set_var() returns an error but does not restore the previous video mode settings in fb_info->var. Later, when fb_videomode_to_var() is called, it dereferences a null pointer because the expected video mode is missing from the mode list, leading to a null pointer dereference and potential kernel crash.
How can this vulnerability impact me? :
This vulnerability can cause a general protection fault in the Linux kernel, leading to a system crash or kernel panic. This can result in denial of service, where the affected system becomes unstable or unusable until rebooted or fixed. It may affect systems using the framebuffer device for video output, potentially impacting availability.
What immediate steps should I take to mitigate this vulnerability?
The vulnerability is fixed in the Linux kernel by restoring fb_info->var on failure in fb_set_var() to prevent null pointer dereference. Immediate mitigation steps include updating your Linux kernel to a version that includes this fix. Until then, avoid using framebuffer operations that trigger fb_set_var() or fb_add_videomode(), and monitor for kernel crashes related to fb_videomode_to_var().