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

fbdev: modedb: fix a possible UAF in fb_find_mode()

If mode_option is NULL, it is assigned from mode_option_buf:

if (!mode_option) {
fb_get_options(NULL, &mode_option_buf);
mode_option = mode_option_buf;
}

Later, name is assigned from mode_option:

const char *name = mode_option;

However, mode_option_buf is freed before name is no longer used:

kfree(mode_option_buf);

while name is still accessed by:

if ((name_matches(db[i], name, namelen) ||

Since name aliases mode_option_buf, this may result in a
use-after-free.

Fix this by extending the lifetime of mode_option_buf until the end of the
function by using scope-based resource management for cleanup.
Published: 2026-07-24
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A use‑after‑free occurs in the fbdev modedb component of the Linux kernel. When fb_find_mode() is called with a NULL mode_option, an internal buffer (mode_option_buf) is allocated, assigned to the name pointer, and freed while the name pointer remains in use. This flaw can corrupt memory or crash the kernel, potentially allowing a local attacker to cause denial of service or, in rare circumstances, achieve arbitrary code execution if the corruption is exploited. The weakness is classified as CWE‑825.

Affected Systems

All Linux kernel builds that include the default framebuffer driver (fbdev) and have not yet incorporated the commit that extends the lifetime of mode_option_buf are vulnerable. The vulnerability applies to any distribution or kernel customisation that ships the stock Linux kernel with the fbdev module compiled in and has not applied the upstream fix.

Risk and Exploitability

The CVSS base score of 5.5 indicates moderate severity, and the EPSS score of less than 1 % implies a very low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog, and no publicly available exploits are reported. The likely attack vector is local manipulation of the framebuffer device; an attacker with write access to /dev/fb0 or a similar interface can trigger the faulty logic. Remote exploitation is improbable without additional privilege escalation or kernel module insertion capabilities.

Generated by OpenCVE AI on August 4, 2026 at 14:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel version that includes the fbdev modedb use‑after‑free fix delivered via the upstream commit.
  • Apply the upstream patch that preserves mode_option_buf until after the name pointer is no longer used, if an official update is not yet available.
  • Restrict write access to framebuffer device files such as /dev/fb0 to trusted users or groups to limit local exploitation while a kernel update is pending.

Generated by OpenCVE AI on August 4, 2026 at 14:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 03 Aug 2026 20:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Wed, 29 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Tue, 28 Jul 2026 16:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 24 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: fbdev: modedb: fix a possible UAF in fb_find_mode() If mode_option is NULL, it is assigned from mode_option_buf: if (!mode_option) { fb_get_options(NULL, &mode_option_buf); mode_option = mode_option_buf; } Later, name is assigned from mode_option: const char *name = mode_option; However, mode_option_buf is freed before name is no longer used: kfree(mode_option_buf); while name is still accessed by: if ((name_matches(db[i], name, namelen) || Since name aliases mode_option_buf, this may result in a use-after-free. Fix this by extending the lifetime of mode_option_buf until the end of the function by using scope-based resource management for cleanup.
Title fbdev: modedb: fix a possible UAF in fb_find_mode()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-27T04:37:28.079Z

Reserved: 2026-07-19T15:36:31.772Z

Link: CVE-2026-64245

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-24T16:16:53.917

Modified: 2026-07-30T15:00:27.343

Link: CVE-2026-64245

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-24T00:00:00Z

Links: CVE-2026-64245 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T15:00:14Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference