CVE Database›Document archive›CVE-2025-68239

CVE-2025-68239

kernel: binfmt_misc: restore write access before closing files opened by open_exec()

Loading…

Severity

Moderate

Red Hat Product Security

4.7

CVSS 3.1

Review impact separately from score.

Published · December 16, 2025

Updated · July 8, 2026

Description

A flaw was found in the binfmt_misc subsystem of the Linux kernel. When bm_register_write() encounters an error after opening an executable file via open_exec(), it closes the file without restoring write access permissions. This leaves the file in a write-denied state, causing subsequent write operations on that file to fail unexpectedly.

Statement

This bug affects file permission state handling rather than security boundaries. The impact is limited to denial of write access on specific files after binfmt_misc registration errors, which is a reliability issue rather than a security vulnerability.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 4.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-772 · Missing Release of Resource after Effective Lifetime