CVE-2026-74485: binfmt_misc: reject a flag character as the field delimiter

Published Aug 15, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

binfmtmisc: reject a flag character as the field delimiter

The registration string starts with a user chosen delimiter that separates the individual fields. So that the field parsers terminate even on a truncated string createentry() pads the buffer with that same delimiter:

memset(buf + count, del, 8);

Most fields are scanned for the delimiter with strchr()/scanarg() and happily stop on the padding. The flags field is different: instead of scanning for the delimiter checkspecialflags() consumes the flag characters 'P', 'O', 'C' and 'F' and stops at the first byte that is none of them, relying on the trailing delimiter to end the scan.

If the delimiter is itself a flag character the padding no longer acts as a terminator. The scan swallows all eight padding bytes and keeps reading past the end of the allocation until it hits a byte that is not a flag character. For example registering

PaPEPPxPPiP

with 'P' as the delimiter (name "a", type extension, magic "x", interpreter "i", empty flags) leaves the flag scan running off the end of the buffer. The registration is rejected in the end because the parser does not stop exactly at buf + count, but only after the out of bounds read has already happened. With an unlucky allocation layout the scan can walk into an unmapped page; under KASAN it is reported as a slab out of bounds read. binfmtmisc mounts are available to unprivileged users in a user namespace so the read is reachable without privileges.

Reject a delimiter that is one of the flag characters up front. Such a registration was always rejected anyway, only after the out of bounds read, so no valid registration string changes meaning.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Update the kernel so binfmt_misc rejects a delimiter that is one of the flag characters up front (e.g., 'P', 'O', 'C', 'F') to ensure field parsers terminate correctly and do not scan past the end.

    Linux kernel binfmt_misc field delimiter validation = reject delimiter if it is one of the flag characters ('P', 'O', 'C', 'F')

Event History

Aug 15, 2026
CVE Published
via MITRE·12:27 PM
Data Sourced
via MITRE·12:27 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-74485?

The severity of CVE-2026-74485 is rated as 37 on the risk scale.

2

How do I fix CVE-2026-74485?

To fix CVE-2026-74485, update your Linux kernel to the latest version that includes the patch for this vulnerability.

3

What systems are affected by CVE-2026-74485?

CVE-2026-74485 affects systems running vulnerable versions of the Linux kernel that utilize the binfmt_misc functionality.

4

What is binfmt_misc in relation to CVE-2026-74485?

Binfmt_misc is a Linux kernel feature that allows the registration of various executable file formats and is the context in which CVE-2026-74485 was identified.

5

What types of attacks could exploit CVE-2026-74485?

CVE-2026-74485 could potentially be exploited to manipulate field parsing in user-defined delimiters, leading to security risks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203