CVE-2026-74487
binfmt_misc: restore write access when removing an entry
Description
In the Linux kernel, the following vulnerability has been resolved: binfmt_misc: restore write access when removing an entry Registering an entry with the MISC_FMT_OPEN_FILE flag opens the interpreter via open_exec() which denies write access to it for as long as the entry exists. Removing the entry closes the interpreter file via filp_close() but never restores write access, leaving the inode's i_writecount permanently negative. Opening the interpreter for writing keeps failing with ETXTBSY long after the entry is gone until the inode is evicted from the inode cache. Commit 90f601b497d7 ("binfmt_misc: restore write access before closing files opened by open_exec()") fixed the same imbalance in the error path of bm_register_write() but the actual removal path has been leaking the write denial since the introduction of the flag. Restore write access in put_binfmt_handler() before closing the interpreter file.
INFO
Published Date :
Aug. 15, 2026, 1:17 p.m.
Last Modified :
Aug. 23, 2026, 1:16 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Apply the kernel patch to restore write access.
- Update the Linux kernel to the latest stable version.
- Reboot the system after applying kernel updates.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-74487.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-74487 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-2026-74487
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-2026-74487 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-74487 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 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Aug. 23, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/13efc628fdf641d901bdba07caa1c558e1bed046 Added Reference https://git.kernel.org/stable/c/7873f987213695e3564c8c259e6db283e4739472 Added Reference https://git.kernel.org/stable/c/a50296cca2a1db9d8d21051e7d50f0cf3a4b7ec8 Added Reference https://git.kernel.org/stable/c/dd9ba32169e73a3c3ba595cf1de1f4c69ceafb3c Added Reference https://git.kernel.org/stable/c/f1cf67f6be0babc73afa4ee0e27bdedffeeeb095 Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': 'fdc1d702bf3001586221fa07e598e876a0a854c5', 'versionType': 'git'}, {'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': '3b522487a3a9162b1b519eefde7998d103e3e07b', 'versionType': 'git'}, {'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': 'db1856ea9196cf6e015d12199a34c0b9313c7bfa', 'versionType': 'git'}], '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': '4.8'}, {'status': 'unaffected', 'version': '0', 'lessThan': '4.8', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.18.44', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.8', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/binfmt_misc.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': '7873f987213695e3564c8c259e6db283e4739472', 'versionType': 'git'}, {'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': '13efc628fdf641d901bdba07caa1c558e1bed046', 'versionType': 'git'}, {'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': 'f1cf67f6be0babc73afa4ee0e27bdedffeeeb095', 'versionType': 'git'}, {'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': 'dd9ba32169e73a3c3ba595cf1de1f4c69ceafb3c', 'versionType': 'git'}, {'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': 'a50296cca2a1db9d8d21051e7d50f0cf3a4b7ec8', 'versionType': 'git'}, {'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': 'fdc1d702bf3001586221fa07e598e876a0a854c5', 'versionType': 'git'}, {'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': '3b522487a3a9162b1b519eefde7998d103e3e07b', 'versionType': 'git'}, {'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': 'db1856ea9196cf6e015d12199a34c0b9313c7bfa', 'versionType': 'git'}], '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': '4.8'}, {'status': 'unaffected', 'version': '0', 'lessThan': '4.8', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.266', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.217', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.184', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.153', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.105', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.44', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.8', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/binfmt_misc.c'], 'defaultStatus': 'affected'}] -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Aug. 17, 2026
Action Type Old Value New Value Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': 'fdc1d702bf3001586221fa07e598e876a0a854c5', 'versionType': 'git'}, {'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': '3b522487a3a9162b1b519eefde7998d103e3e07b', 'versionType': 'git'}, {'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': 'db1856ea9196cf6e015d12199a34c0b9313c7bfa', 'versionType': 'git'}], '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': '4.8'}, {'status': 'unaffected', 'version': '0', 'lessThan': '4.8', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.18.44', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.8', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc6', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/binfmt_misc.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': 'fdc1d702bf3001586221fa07e598e876a0a854c5', 'versionType': 'git'}, {'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': '3b522487a3a9162b1b519eefde7998d103e3e07b', 'versionType': 'git'}, {'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': 'db1856ea9196cf6e015d12199a34c0b9313c7bfa', 'versionType': 'git'}], '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': '4.8'}, {'status': 'unaffected', 'version': '0', 'lessThan': '4.8', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.18.44', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.8', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/binfmt_misc.c'], 'defaultStatus': 'affected'}] -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Aug. 15, 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': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': 'fdc1d702bf3001586221fa07e598e876a0a854c5', 'versionType': 'git'}, {'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': '3b522487a3a9162b1b519eefde7998d103e3e07b', 'versionType': 'git'}, {'status': 'affected', 'version': '948b701a607f123df92ed29084413e5dd8cda2ed', 'lessThan': 'db1856ea9196cf6e015d12199a34c0b9313c7bfa', 'versionType': 'git'}], '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': '4.8'}, {'status': 'unaffected', 'version': '0', 'lessThan': '4.8', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.18.44', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.8', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc6', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/binfmt_misc.c'], 'defaultStatus': 'affected'}] Added Description In the Linux kernel, the following vulnerability has been resolved: binfmt_misc: restore write access when removing an entry Registering an entry with the MISC_FMT_OPEN_FILE flag opens the interpreter via open_exec() which denies write access to it for as long as the entry exists. Removing the entry closes the interpreter file via filp_close() but never restores write access, leaving the inode's i_writecount permanently negative. Opening the interpreter for writing keeps failing with ETXTBSY long after the entry is gone until the inode is evicted from the inode cache. Commit 90f601b497d7 ("binfmt_misc: restore write access before closing files opened by open_exec()") fixed the same imbalance in the error path of bm_register_write() but the actual removal path has been leaking the write denial since the introduction of the flag. Restore write access in put_binfmt_handler() before closing the interpreter file. Added Reference https://git.kernel.org/stable/c/3b522487a3a9162b1b519eefde7998d103e3e07b Added Reference https://git.kernel.org/stable/c/db1856ea9196cf6e015d12199a34c0b9313c7bfa Added Reference https://git.kernel.org/stable/c/fdc1d702bf3001586221fa07e598e876a0a854c5