VDB

CVE-2025-68296

CVE-2025-68296 PUBLISHED

drm, fbcon, vga_switcheroo: Avoid race condition in fbcon setup

Reported by linux · Published December 16, 2025

In the Linux kernel, the following vulnerability has been resolved: drm, fbcon, vga_switcheroo: Avoid race condition in fbcon setup Protect vga_switcheroo_client_fb_set() with console lock. Avoids OOB access in fbcon_remap_all(). Without holding the console lock the call races with switching outputs. VGA switcheroo calls fbcon_remap_all() when switching clients. The fbcon function uses struct fb_info.node, which is set by register_framebuffer(). As the fb-helper code currently sets up VGA switcheroo before registering the framebuffer, the value of node is -1 and therefore not a legal value. For example, fbcon uses the value within set_con2fb_map() [1] as an index into an array. Moving vga_switcheroo_client_fb_set() after register_framebuffer() can result in VGA switching that does not switch fbcon correctly. Therefore move vga_switcheroo_client_fb_set() under fbcon_fb_registered(), which already holds the console lock. Fbdev calls fbcon_fb_registered() from within register_framebuffer(). Serializes the helper with VGA switcheroo's call to fbcon_remap_all(). Although vga_switcheroo_client_fb_set() takes an instance of struct fb_info as parameter, it really only needs the contained fbcon state. Moving the call to fbcon initialization is therefore cleaner than before. Only amdgpu, i915, nouveau and radeon support vga_switcheroo. For all other drivers, this change does nothing.

EPSS 0.21% · 10.5th percentile

Fixed versions

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

PackageEcosystemFixed in
kernel6.12-libbpf-develAmazon Linux1:6.12.63-84.121.amzn2023
kernel6.12-develAmazon Linux1:6.12.63-84.121.amzn2023

Risk scores

EPSS Score
0.21%
10.5th percentile

Affected products

VendorProductVersions
LinuxLinux6a9ee8af344e3bd7dbd61e67037096cdf7f83289, 6a9ee8af344e3bd7dbd61e67037096cdf7f83289, 6a9ee8af344e3bd7dbd61e67037096cdf7f83289
LinuxLinux2.6.34, 0, 6.6.143
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel6.12-devel0
linuxlinux_kernel2.6.34, 2.6.34, 2.6.34
amazon:2023kernel6.12-modules-extra0
amazon:2023perf6.120
amazon:2023kernel-livepatch-6.12.63-84.1210
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-tools-devel0
amazon:2023bpftool6.120
amazon:2023kernel6.12-libbpf0
amazon:2023kernel6.120
LinuxLinux6.6.143, 6.17.11, 6.18
amazon:2023kernel6.12-libbpf-static0
amazon:2023python3-perf6.120
amazon:2023kernel6.12-tools0
amazon:2023kernel6.12-headers0

Timeline

  • Dec 16, 2025 CVE Published
  • Dec 17, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (167 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (173 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-68296
vulnetix vdb fixes CVE-2025-68296

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-2025-68296/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 ›