VDB

CVE-2025-68239

CVE-2025-68239 PUBLISHED

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.

PackageEcosystemFixed in
kernel6.12-libbpfAmazon Linux1:6.12.79-101.147.amzn2023
kernel-modules-extraAmazon Linux1:6.1.168-202.320.amzn2023
perfAmazon Linux1:6.1.168-202.320.amzn2023
kernel-libbpfAmazon Linux1:6.1.168-202.320.amzn2023
kernel-develAmazon Linux1:6.1.168-202.320.amzn2023
perf6.12Amazon Linux1:6.12.79-101.147.amzn2023
kernel-livepatch-6.12.79-101.147Amazon Linux1:1.0-0.amzn2023
kernel6.12-develAmazon Linux1:6.12.79-101.147.amzn2023
kernel-libbpf-staticAmazon Linux1:6.1.168-202.320.amzn2023
kernel-modules-extra-commonAmazon Linux1:6.1.168-202.320.amzn2023
bpftool6.12Amazon Linux1:6.12.79-101.147.amzn2023
kernel-livepatch-6.1.168-202.320Amazon Linux1:1.0-0.amzn2023

5 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
LinuxLinuxe7850f4d844e0acfac7e570af611d89deade3146, e7850f4d844e0acfac7e570af611d89deade3146, e7850f4d844e0acfac7e570af611d89deade3146
LinuxLinux5.12, 0, 5.15.209
amazon:2023kernel6.12-libbpf0
amazon:2023kernel-modules-extra0
amazon:2023perf0
amazon:2023kernel-libbpf0
amazon:2023kernel-devel0
amazon:2023perf6.120
amazon:2023kernel-livepatch-6.12.79-101.1470
amazon:2023kernel6.12-devel0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-modules-extra-common0
amazon:2023bpftool6.120
amazon:2023kernel-livepatch-6.1.168-202.3200
amazon:2023kernel6.120
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel-headers0
LinuxLinux5.15.209, *, 467a50d5db7deaf656e18a1f633be9ecd94b393a
amazon:2023kernel-tools-devel0

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›