CVE-2025-39879
BaseFortify
Publication date: 2025-09-23
Last updated on: 2025-12-12
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.15 (inc) to 6.16.8 (exc) |
| linux | linux_kernel | 6.17 |
| linux | linux_kernel | 6.17 |
| linux | linux_kernel | 6.17 |
| linux | linux_kernel | 6.17 |
| linux | linux_kernel | 6.17 |
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 in the Linux kernel's Ceph component involves improper handling of folio_batch entries. The function ceph_process_folio_batch() sets some entries to NULL, which is illegal, and the function ceph_shift_unused_folios_left() is supposed to remove these NULL entries. However, due to changes in the code, this shifting no longer happens reliably, leaving NULL entries in the array. This can lead to a kernel crash caused by a NULL pointer dereference when the kernel later tries to access these invalid entries.
How can this vulnerability impact me? :
This vulnerability can cause the Linux kernel to crash due to a NULL pointer dereference. Such crashes can lead to system instability, potential data loss, and denial of service as the kernel becomes unresponsive or restarts unexpectedly.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability manifests as a kernel crash with a NULL pointer dereference in the ceph_writepages_start() function, often visible in kernel logs with messages like 'BUG: kernel NULL pointer dereference' and call traces involving ceph_writepages_start and folios_put_refs. Detection involves monitoring kernel logs (e.g., using 'dmesg' or 'journalctl -k') for such crash signatures. Specific commands to check kernel logs include: 'dmesg | grep -i ceph', 'journalctl -k | grep -i ceph', or 'grep -i "BUG: kernel NULL pointer dereference" /var/log/kern.log'.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation involves updating the Linux kernel to a version where this vulnerability is fixed, ensuring that the function ceph_shift_unused_folios_left() is properly called after ceph_process_folio_batch() to prevent illegal folio_batch states and kernel crashes. If updating is not immediately possible, monitoring for kernel crashes and avoiding workloads that trigger ceph_process_folio_batch() failures may reduce risk, but no direct workaround commands are provided.