CVE-2025-68239
binfmt_misc: restore write access before closing files opened by open_exec()
Reported by linux · Published December 16, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-libbpf | Amazon Linux | 1:6.12.79-101.147.amzn2023 |
| kernel-modules-extra | Amazon Linux | 1:6.1.168-202.320.amzn2023 |
| perf | Amazon Linux | 1:6.1.168-202.320.amzn2023 |
| kernel-libbpf | Amazon Linux | 1:6.1.168-202.320.amzn2023 |
| kernel-devel | Amazon Linux | 1:6.1.168-202.320.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.79-101.147.amzn2023 |
| kernel-livepatch-6.12.79-101.147 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.79-101.147.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 1:6.1.168-202.320.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 1:6.1.168-202.320.amzn2023 |
| bpftool6.12 | Amazon Linux | 1:6.12.79-101.147.amzn2023 |
| kernel-livepatch-6.1.168-202.320 | Amazon Linux | 1:1.0-0.amzn2023 |
5 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | e7850f4d844e0acfac7e570af611d89deade3146, e7850f4d844e0acfac7e570af611d89deade3146, e7850f4d844e0acfac7e570af611d89deade3146 |
| Linux | Linux | 5.12, 0, 5.15.209 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.12.79-101.147 | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.1.168-202.320 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel-headers | 0 |
| Linux | Linux | 5.15.209, *, 467a50d5db7deaf656e18a1f633be9ecd94b393a |
| amazon:2023 | kernel-tools-devel | 0 |
…and 13 more
Timeline
- Dec 16, 2025 CVE Published
- Dec 17, 2025 EPSS Score (30 in total, the first dated here)
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (186 in total, the first dated here)
- Mar 29, 2026 Security Advisory (192 in total, the first dated here)
- Jun 17, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-68239
vulnetix vdb fixes CVE-2025-68239
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-68239/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart