0.0
NA
CVE-2025-68239
binfmt_misc: restore write access before closing files opened by open_exec()
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.

INFO

Published Date :

Dec. 16, 2025, 3:15 p.m.

Last Modified :

Oct. 15, 2026, 2:18 a.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2025-68239 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
Solution
Restore write access before closing files to prevent subsequent write failures.
  • Call exe_file_allow_write_access() before filp_close().
  • Apply the Linux kernel patch for binfmt_misc.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-68239 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-68239 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-68239 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-68239 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e

    Oct. 15, 2026

    Action Type Old Value New Value
    Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/68xxx/CVE-2025-68239.json">CVE-2025-68239</a>
    Added Reference https://cert-portal.siemens.com/productcert/html/ssa-784472.html
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Oct. 15, 2026

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/480ac88431703f2adbb8e6b5bd73c3f3cf9f3d7f
    Added Reference https://git.kernel.org/stable/c/54274ff90488b6c0f595a6518faed3cf0bc966eb
    Added Reference https://git.kernel.org/stable/c/6cce7bc7fac8471c832696720d9c8f2a976d9c54
    Added Reference https://git.kernel.org/stable/c/90f601b497d76f40fa66795c3ecf625b6aced9fd
    Added Reference https://git.kernel.org/stable/c/e785f552ab04dbca01d31f0334f4561240b04459
    Added Reference https://git.kernel.org/stable/c/fbab8c08e1a6dbaef81e22d672a7647553101d16
    Removed Reference https://git.kernel.org/stable/c/480ac88431703f2adbb8e6b5bd73c3f3cf9f3d7f
    Removed Reference https://git.kernel.org/stable/c/54274ff90488b6c0f595a6518faed3cf0bc966eb
    Removed Reference https://git.kernel.org/stable/c/6cce7bc7fac8471c832696720d9c8f2a976d9c54
    Removed Reference https://git.kernel.org/stable/c/90f601b497d76f40fa66795c3ecf625b6aced9fd
    Removed Reference https://git.kernel.org/stable/c/e785f552ab04dbca01d31f0334f4561240b04459
    Removed Reference https://git.kernel.org/stable/c/fbab8c08e1a6dbaef81e22d672a7647553101d16
  • CVE Translated by [email protected]

    Oct. 14, 2026

    Action Type Old Value New Value
    Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: binfmt_misc: restaurar el acceso de escritura antes de cerrar archivos abiertos por open_exec() bm_register_write() abre un archivo ejecutable usando open_exec(), que internamente llama a do_open_execat() y deniega el acceso de escritura en el archivo para evitar modificaciones mientras se está ejecutando. Sin embargo, cuando ocurre un error, bm_register_write() cierra el archivo usando filp_close() directamente. Esto no restaura el permiso de escritura, lo que puede causar que operaciones de escritura posteriores en el mismo archivo fallen. Solucione esto llamando a exe_file_allow_write_access() antes de filp_close() para restaurar el permiso de escritura correctamente.
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'e7850f4d844e0acfac7e570af611d89deade3146', 'lessThan': '54274ff90488b6c0f595a6518faed3cf0bc966eb', 'versionType': 'git'}, {'status': 'affected', 'version': 'e7850f4d844e0acfac7e570af611d89deade3146', 'lessThan': '480ac88431703f2adbb8e6b5bd73c3f3cf9f3d7f', 'versionType': 'git'}, {'status': 'affected', 'version': 'e7850f4d844e0acfac7e570af611d89deade3146', 'lessThan': 'fbab8c08e1a6dbaef81e22d672a7647553101d16', 'versionType': 'git'}, {'status': 'affected', 'version': 'e7850f4d844e0acfac7e570af611d89deade3146', 'lessThan': '6cce7bc7fac8471c832696720d9c8f2a976d9c54', 'versionType': 'git'}, {'status': 'affected', 'version': 'e7850f4d844e0acfac7e570af611d89deade3146', 'lessThan': 'e785f552ab04dbca01d31f0334f4561240b04459', 'versionType': 'git'}, {'status': 'affected', 'version': 'e7850f4d844e0acfac7e570af611d89deade3146', 'lessThan': '90f601b497d76f40fa66795c3ecf625b6aced9fd', 'versionType': 'git'}, {'status': 'affected', 'version': '467a50d5db7deaf656e18a1f633be9ecd94b393a', 'versionType': 'git'}, {'status': 'affected', 'version': '4a8b4124ea4156ca52918b66c750a69c6d932aa5', 'versionType': 'git'}, {'status': 'affected', 'version': '3fe116e33a855bbfdd32dc207e9be2a41e3ed3a6', 'versionType': 'git'}, {'status': 'affected', 'version': 'c0e0ab60d0b15469e69db93215dad009999f5a5b', 'versionType': 'git'}, {'status': 'affected', 'version': '5ab9464a2a3c538eedbb438f1802f2fd98d0953f', 'versionType': 'git'}, {'status': 'affected', 'version': 'd28492be82e19fc69cc69975fc2052b37ef0c821', 'versionType': 'git'}, {'status': 'affected', 'version': '4.9.262', 'lessThan': '4.10', 'versionType': 'semver'}, {'status': 'affected', 'version': '4.14.226', 'lessThan': '4.15', 'versionType': 'semver'}, {'status': 'affected', 'version': '4.19.181', 'lessThan': '4.20', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.4.106', 'lessThan': '5.5', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.10.24', 'lessThan': '5.11', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.11.7', 'lessThan': '5.12', 'versionType': 'semver'}], 'programFiles': ['fs/binfmt_misc.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.12'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.12', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.15.209', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.167', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.130', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.78', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.17.9', 'versionType': 'semver', 'lessThanOrEqual': '6.17.*'}, {'status': 'unaffected', 'version': '6.18', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/binfmt_misc.c'], 'defaultStatus': 'affected'}]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 01, 2026

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/54274ff90488b6c0f595a6518faed3cf0bc966eb
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Mar. 25, 2026

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/480ac88431703f2adbb8e6b5bd73c3f3cf9f3d7f
    Added Reference https://git.kernel.org/stable/c/6cce7bc7fac8471c832696720d9c8f2a976d9c54
    Added Reference https://git.kernel.org/stable/c/fbab8c08e1a6dbaef81e22d672a7647553101d16
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Dec. 16, 2025

    Action Type Old Value New Value
    Added 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.
    Added Reference https://git.kernel.org/stable/c/90f601b497d76f40fa66795c3ecf625b6aced9fd
    Added Reference https://git.kernel.org/stable/c/e785f552ab04dbca01d31f0334f4561240b04459
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.