CVE-2025-68239
NoneCVSS
—
EPSS
0.2%
Published
Dec 16, 2025
CISA due date
—
Cloudanix analysis
A Linux kernel bug can leave certain executable files unable to be changed after an internal operation fails, which might break updates or modifications on affected systems.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Theoretical
- Impact
- Denial Of Service
- Component
- OS kernel
- Class
- Other
- Remediation
- Patch
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw occurs when bm_register_write() opens a file via open_exec() (denying write access) and later closes it with filp_close() on error paths without calling exe_file_allow_write_access(), leaving the file permanently non-writable.
Why it matters to the business
Systems may experience unexpected failures when attempting to modify executable files registered with binfmt_misc after certain error conditions, potentially disrupting application updates, packaging, or runtime operations on Linux hosts.
How an attack unfolds
An attacker with local access could trigger error paths in bm_register_write() to cause write permission to remain denied on targeted files, leading to operational interference; no public exploitation or threat actor campaigns are associated with this issue.
How to fix it
Upgrade the Linux kernel to a version containing commit e785f552ab04dbca01d31f0334f4561240b04459 or later; for k8sgpt packages update to 0.3.48-r5 or newer.
How to confirm the fix worked
Confirm the presence of the fix commit in the running kernel source or binary, and verify that write access is restored after error paths in binfmt_misc registration by inspecting exe_file_allow_write_access() calls.
Typical attack path
- Identify or create conditions that cause bm_register_write() to hit an error after open_exec()
- Allow the error handler to invoke filp_close() without restoring write access
- Attempt subsequent write operations on the affected file to observe failures
How to detect it
Search kernel logs and audit trails for binfmt_misc registration errors followed by unexpected EACCES or permission-denied events on files that should remain writable; examine process traces involving open_exec and filp_close.
What your security team should do
- Prioritize kernel updates on all affected Linux distributions within standard patching cycles
- Monitor for downstream package updates in container images and embedded systems
- Review binfmt_misc usage in custom workloads for any reliance on file writability after registration attempts
The record
In the Linux kernel, the following vulnerability has been resolved: binfmt_misc: restore write access before closing files opened by open_exec() bm_register_write() opens an executable file using open_exec(), which internally calls do_open_execat() and denies write access on the file to avoid modification while it is being executed. However, when an error occurs, bm_register_write() closes the file using filp_close() directly. This does not restore the write permission, which may cause subsequent write operations on the same file to fail. Fix this by calling exe_file_allow_write_access() before filp_close() to restore the write permission properly.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Linux | Kernel | 5.12.0 | 6.17.9 |
| openSUSE:Leap 16.0 | dtb-aarch64 | 0 | 6.12.0-160000.9.1 |
| openSUSE:Leap 16.0 | kernel-64kb | 0 | 6.12.0-160000.9.1 |
| openSUSE:Leap 16.0 | kernel-azure | 0 | 6.12.0-160000.9.1 |
| openSUSE:Leap 16.0 | kernel-default | 0 | 6.12.0-160000.9.1 |
| openSUSE:Leap 16.0 | kernel-default-base | 0 | 6.12.0-160000.9.1.160000.2.6 |
| openSUSE:Leap 16.0 | kernel-docs | 0 | 6.12.0-160000.9.1 |
| openSUSE:Leap 16.0 | kernel-kvmsmall | 0 | 6.12.0-160000.9.1 |
| openSUSE:Leap 16.0 | kernel-obs-build | 0 | 6.12.0-160000.9.1 |
| openSUSE:Leap 16.0 | kernel-obs-qa | 0 | 6.12.0-160000.9.1 |
| openSUSE:Leap 16.0 | kernel-rt | 0 | 6.12.0-160000.9.1 |
| openSUSE:Leap 16.0 | kernel-source | 0 | 6.12.0-160000.9.1 |
| openSUSE:Leap 16.0 | kernel-syms | 0 | 6.12.0-160000.9.1 |
| openSUSE:Leap 16.0 | kernel-zfcpdump | 0 | 6.12.0-160000.9.1 |
Related vulnerabilities
- CVE-2026-23226 In the Linux kernel, the following vulnerability has been resolved: ksmbd: add chann_lock… Also affects Kernel
- CVE-2026-23225 In the Linux kernel, the following vulnerability has been resolved: sched/mmcid: Don't… Also affects Kernel
- CVE-2026-23230 In the Linux kernel, the following vulnerability has been resolved: smb: client: split… Also affects Kernel
- CVE-2026-23224 In the Linux kernel, the following vulnerability has been resolved: erofs: fix UAF issue… Also affects Kernel
- CVE-2026-23227 In the Linux kernel, the following vulnerability has been resolved: drm/exynos: vidi: use… Also affects Kernel
- CVE-2026-23223 In the Linux kernel, the following vulnerability has been resolved: xfs: fix UAF in… Also affects Kernel
- CVE-2026-23228 In the Linux kernel, the following vulnerability has been resolved: smb: server: fix leak… Also affects Kernel
- CVE-2026-23229 In the Linux kernel, the following vulnerability has been resolved: crypto: virtio - Add… Also affects Kernel