CVE-2025-38223
BaseFortify
Publication date: 2025-07-04
Last updated on: 2025-11-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 5.15.160 (inc) to 5.16 (inc) |
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-617 | The product contains an assert() or similar statement that can be triggered by an attacker, which leads to an application exit or other behavior that is more severe than necessary. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability occurs in the Linux kernel's Ceph filesystem component. It triggers a kernel BUG when handling encrypted inodes with unaligned file sizes (such as 33K or 1K). Specifically, the generic/397 test causes a BUG_ON condition, leading to a kernel crash due to improper handling of encrypted inode data with file sizes that are not aligned to expected boundaries.
How can this vulnerability impact me? :
This vulnerability can cause the Linux kernel to crash (kernel BUG) when processing encrypted files with unaligned sizes in the Ceph filesystem. This can lead to system instability, potential data loss, or denial of service as the kernel encounters an unrecoverable error.
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 BUG messages related to ceph, specifically messages indicating a BUG_ON triggered by encrypted inodes with unaligned file sizes. You can check the kernel log for such messages using commands like: dmesg | grep -i 'kernel BUG' or dmesg | grep -i 'ceph'. Additionally, monitoring for Oops messages or crashes related to ceph in /var/log/kern.log or /var/log/messages can help detect the issue.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include upgrading the Linux kernel to a version where this vulnerability is resolved. Avoid using deprecated v1 encryption policies with xfs_io as indicated in the logs, and upgrade to v2 encryption policies. Monitoring and avoiding file sizes that are unaligned (e.g., 33K or 1K) for encrypted inodes may also help prevent triggering the bug until a patch is applied.