# CVE-2025-68296: drm, fbcon, vga\_switcheroo: Avoid race condition in fbcon setup

- Priority: **Insufficient evidence**
- Reason: No CVSS vector published; no exploitation reported by the 5 checked sources
- Next step: Check the vendor advisory
- Status: published
- Published: 2025-12-16 · Modified: 2026-06-19
- Aliases: UBUNTU-CVE-2025-68296, DEBIAN-CVE-2025-68296
- Record: https://cvemate.com/vulnerability/CVE-2025-68296 · JSON: https://cvemate.com/vulnerability/CVE-2025-68296/json

## Description

```text
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.
```

## Signals

- CVSS: none published
- EPSS: 0.22%, percentile 13.338%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 161)

- debian linux (Debian): All versions (No fix recorded) \| \< 6.12.63-1 \| \< 6.17.11-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-146.146 \| \< 6.17.0-19.19
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1066.69 \| \< 6.17.0-1009.9
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): \< 6.17.0-1009.9~24.04.2
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1066.69~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1066.69+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1070.78 \| \< 6.17.0-1010.10

## References (first 20 of 24)

- <https://git.kernel.org/stable/c/711ebd961190def4c69ea24b2f0be75e995af24a>
- <https://git.kernel.org/stable/c/482330f8261b4bea8146d9bd69c1199e5dfcbb5c>
- <https://git.kernel.org/stable/c/05814c389b53d2f3a0b9eeb90ba7a05ba77c4c2a>
- <https://git.kernel.org/stable/c/eb76d0f5553575599561010f24c277cc5b31d003>
- <https://ubuntu.com/security/CVE-2025-68296>
- <https://www.cve.org/CVERecord?id=CVE-2025-68296>
- <https://git.kernel.org/linus/eb76d0f5553575599561010f24c277cc5b31d003>
- <https://ubuntu.com/security/notices/USN-8094-1>
- <https://ubuntu.com/security/notices/USN-8094-2>
- <https://ubuntu.com/security/notices/USN-8094-3>
- <https://ubuntu.com/security/notices/USN-8094-4>
- <https://ubuntu.com/security/notices/USN-8094-5>
- <https://ubuntu.com/security/notices/USN-8152-1>
- <https://ubuntu.com/security/notices/USN-8903-1>
- <https://ubuntu.com/security/notices/USN-8905-1>
- <https://ubuntu.com/security/notices/USN-8906-1>
- <https://ubuntu.com/security/notices/USN-8904-1>
- <https://ubuntu.com/security/notices/USN-8903-2>
- <https://ubuntu.com/security/notices/USN-8905-2>
- <https://security-tracker.debian.org/tracker/CVE-2025-68296>

---

Data as of 2026-12-05T03:59:34.636Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
