CVE-2025-68239
Deferred Deferred - Pending Action

BaseFortify

Vulnerability report for CVE-2025-68239, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2025-12-16

Last updated on: 2026-06-01

Assigner: kernel.org

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2025-12-16
Last Modified
2026-06-01
Generated
2026-07-06
AI Q&A
2025-12-16
EPSS Evaluated
2026-07-05
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability occurs in the Linux kernel's binfmt_misc component where a function called bm_register_write() opens an executable file with write access denied to prevent modification during execution. However, if an error happens, the file is closed without restoring write permissions, causing subsequent write operations on the file to fail. The fix involves properly restoring write access before closing the file.

Impact Analysis

The vulnerability can cause write operations on executable files to fail after an error occurs during file handling. This may lead to issues in modifying or updating executable files, potentially disrupting system operations or software updates that rely on writing to these files.

Mitigation Strategies

Apply the patch or update to a Linux kernel version that includes the fix for this vulnerability, which restores write access properly by calling exe_file_allow_write_access() before filp_close(). Until then, avoid relying on bm_register_write() for handling executable files to prevent write permission issues.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-68239. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart