# CVE-2026-64245: fbdev: modedb: fix a possible UAF in fb_find_mode()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-07-24T15:31:14.142Z
- Modified: 2026-11-08T16:10:00.183Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 089d924d03d5c17b05d02992f57671ccfba1c4f0 before c7dc382439f7b019e207055b52e9cec051d42fa9; from 089d924d03d5c17b05d02992f57671ccfba1c4f0 before f906347d75c7fc377041c6d3c535d0f08846aada; from 089d924d03d5c17b05d02992f57671ccfba1c4f0 before 4d418cf8daf57e454b4d855bf9b2419fd8e6a540; from 089d924d03d5c17b05d02992f57671ccfba1c4f0 before 13b6f0cdd5cd5e60f682ec43134ab0e2024bd356; from 089d924d03d5c17b05d02992f57671ccfba1c4f0 before 85b6256469cebdac395e7447147e06b2e151014f; 6.4 (not affected: before 6.4; from 6.6.144 up to 6.6.*; from 6.12.95 up to 6.12.*; from 6.18.38 up to 6.18.*; from 7.1.3 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 6.4 before 6.6.144; from 6.7 before 6.12.95; from 6.13 before 6.18.38; from 6.19 before 7.1.3

## References

- <https://git.kernel.org/stable/c/c7dc382439f7b019e207055b52e9cec051d42fa9> (patch)
- <https://git.kernel.org/stable/c/f906347d75c7fc377041c6d3c535d0f08846aada> (patch)
- <https://git.kernel.org/stable/c/4d418cf8daf57e454b4d855bf9b2419fd8e6a540> (patch)
- <https://git.kernel.org/stable/c/13b6f0cdd5cd5e60f682ec43134ab0e2024bd356> (patch)
- <https://git.kernel.org/stable/c/85b6256469cebdac395e7447147e06b2e151014f> (patch)

## Sources

- CVE List: [CVE-2026-64245](https://www.cve.org/CVERecord?id=CVE-2026-64245), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-64245](https://nvd.nist.gov/vuln/detail/CVE-2026-64245), Public domain, modified 2026-11-08

---

Page: https://cve.day/CVE-2026-64245 · Whole record: https://cve.day/CVE-2026-64245.json · Rebuilt by cve.day 2026-11-25T22:59:30.016Z
