VDB

CVE-2026-63826

CVE-2026-63826 PUBLISHED

fbdev: fix use-after-free in store_modes()

Reported by linux · Published July 19, 2026

In the Linux kernel, the following vulnerability has been resolved: fbdev: fix use-after-free in store_modes() store_modes() replaces a framebuffer's modelist with modes from userspace. On success it frees the old modelist with fb_destroy_modelist(). Two fields still point into that freed list. One pointer is fb_display[i].mode, the mode a console is using. fbcon_new_modelist() moves these pointers to the new list. It only does so for consoles still mapped to the framebuffer. An unmapped console is skipped and keeps its stale pointer. Unbinding fbcon, for example, sets con2fb_map[i] to -1 but leaves fb_display[i].mode set. An FBIOPUT_VSCREENINFO ioctl with FB_ACTIVATE_INV_MODE later reaches fbcon_mode_deleted(). That function reads the stale fb_display[i].mode through fb_mode_is_equal(). The read is a use-after-free. The other pointer is fb_info->mode, the current mode. It is set through the mode sysfs attribute. store_modes() does not update fb_info->mode, so it is left pointing into the freed list. show_mode(), the attribute's read handler, dereferences the stale fb_info->mode through mode_string(). The read is a use-after-free. Clear both pointers before freeing the list. Commit a1f305893074 ("fbcon: Set fb_display[i]->mode to NULL when the mode is released") added the helper fbcon_delete_modelist(). It clears every fb_display[i].mode that points into a given list. So far it is called only from the unregister path. Call it from store_modes() too, and set fb_info->mode to NULL.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.18-tools-develAmazon Linux1:6.18.38-73.137.amzn2023
kernel-tools-develAmazon Linux1:6.1.180-225.360.amzn2023
bpftoolAmazon Linux1:6.1.180-225.360.amzn2023
kernel6.18Amazon Linux1:6.18.38-73.137.amzn2023
kernel6.12-headersAmazon Linux1:6.12.95-124.187.amzn2023
kernel-livepatch-6.1.180-225.360Amazon Linux1:1.0-0.amzn2023
bpftool6.18Amazon Linux1:6.18.38-73.137.amzn2023
kernel6.12-develAmazon Linux1:6.12.95-124.187.amzn2023
microvm-kernel6.18Amazon Linux1:6.18.38-73.137.amzn2023
bpftool6.12Amazon Linux1:6.12.95-124.187.amzn2023
kernel6.12Amazon Linux1:6.12.95-124.187.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.95-124.187.amzn2023

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

Affected products

VendorProductVersions
LinuxLinux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
LinuxLinux2.6.12, 0, 6.1.191
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel-tools-devel0
amazon:2023bpftool0
amazon:2023kernel6.180
amazon:2023kernel6.12-headers0
amazon:2023kernel-livepatch-6.1.180-225.3600
amazon:2023bpftool6.180
amazon:2023kernel6.12-devel0
amazon:2023microvm-kernel6.180
amazon:2023bpftool6.120
amazon:2023kernel6.120
amazon:2023kernel6.12-modules-extra-common0
amazon:2023perf6.120
amazon:2023kernel6.18-tools0
amazon:2023perf6.180
linuxlinux_kernel2.6.12, 2.6.12, 2.6.12
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-tools0

…and 18 more

Timeline

  • Jul 19, 2026 CVE Published
  • Jul 20, 2026 Security Advisory (31 in total, the first dated here)
  • Aug 7, 2026 EPSS Score (12 in total, the first dated here)
  • Aug 12, 2026 Distribution Patch (30 in total, the first dated here)
  • Nov 6, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-63826
vulnetix vdb fixes CVE-2026-63826

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-2026-63826/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

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