# CVE-2025-21976: fbdev: hyperv\_fb: Allow graceful removal of framebuffer

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **Published:** 2025-04-01T15:47:07.120Z
- **Modified:** 2026-10-21T13:18:03.923Z

## Who should check

- Anyone running Linux \>= 68a2d20b79b105f02dcbc52c211d7e62f98996b7, \< b1a86a5ab0d44160534f495a3630646092d98e27; \>= 68a2d20b79b105f02dcbc52c211d7e62f98996b7, \< 4545e2aa121aea304d33903099c03e29ed4fe50a; \>= 68a2d20b79b105f02dcbc52c211d7e62f98996b7, \< a7b583dc99c6cf4a96877017be1d08247e1ef2c7; \>= 68a2d20b79b105f02dcbc52c211d7e62f98996b7, \< ea2f45ab0e53b255f72c85ccd99e2b394fc5fceb
- Anyone running Linux 3.10

## Description

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

fbdev: hyperv\_fb: Allow graceful removal of framebuffer

When a Hyper-V framebuffer device is unbind, hyperv\_fb driver tries to
release the framebuffer forcefully. If this framebuffer is in use it
produce the following WARN and hence this framebuffer is never released.

\[   44.111220\] WARNING: CPU: 35 PID: 1882 at drivers/video/fbdev/core/fb\_info.c:70 framebuffer\_release+0x2c/0x40
\< snip \>
\[   44.111289\] Call Trace:
\[   44.111290\]  \<TASK\>
\[   44.111291\]  ? show\_regs+0x6c/0x80
\[   44.111295\]  ? \_\_warn+0x8d/0x150
\[   44.111298\]  ? framebuffer\_release+0x2c/0x40
\[   44.111300\]  ? report\_bug+0x182/0x1b0
\[   44.111303\]  ? handle\_bug+0x6e/0xb0
\[   44.111306\]  ? exc\_invalid\_op+0x18/0x80
\[   44.111308\]  ? asm\_exc\_invalid\_op+0x1b/0x20
\[   44.111311\]  ? framebuffer\_release+0x2c/0x40
\[   44.111313\]  ? hvfb\_remove+0x86/0xa0 \[hyperv\_fb\]
\[   44.111315\]  vmbus\_remove+0x24/0x40 \[hv\_vmbus\]
\[   44.111323\]  device\_remove+0x40/0x80
\[   44.111325\]  device\_release\_driver\_internal+0x20b/0x270
\[   44.111327\]  ? bus\_find\_device+0xb3/0xf0

Fix this by moving the release of framebuffer and assosiated memory
to fb\_ops.fb\_destroy function, so that framebuffer framework handles
it gracefully.

While we fix this, also replace manual registrations/unregistration of
framebuffer with devm\_register\_framebuffer.

## Affected and fixed versions

- Linux: \>= 68a2d20b79b105f02dcbc52c211d7e62f98996b7, \< b1a86a5ab0d44160534f495a3630646092d98e27; \>= 68a2d20b79b105f02dcbc52c211d7e62f98996b7, \< 4545e2aa121aea304d33903099c03e29ed4fe50a; \>= 68a2d20b79b105f02dcbc52c211d7e62f98996b7, \< a7b583dc99c6cf4a96877017be1d08247e1ef2c7; \>= 68a2d20b79b105f02dcbc52c211d7e62f98996b7, \< ea2f45ab0e53b255f72c85ccd99e2b394fc5fceb (cvelist)
- Linux: 3.10 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21976. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21976.md
Affected: Linux >= 68a2d20b79b105f02dcbc52c211d7e62f98996b7, < b1a86a5ab0d44160534f495a3630646092d98e27; >= 68a2d20b79b105f02dcbc52c211d7e62f98996b7, < 4545e2aa121aea304d33903099c03e29ed4fe50a; >= 68a2d20b79b105f02dcbc52c211d7e62f98996b7, < a7b583dc99c6cf4a96877017be1d08247e1ef2c7; >= 68a2d20b79b105f02dcbc52…
Fixed in: Linux 4545e2aa121aea304d33903099c03e29ed4fe50a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21976 being exploited?

There is no confirmed exploitation: CVE-2025-21976 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21976?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21976?

Linux \>= 68a2d20b79b105f02dcbc52c211d7e62f98996b7, \< b1a86a5ab0d44160534f495a3630646092d98e27; \>= 68a2d20b79b105f02dcbc52c211d7e62f98996b7, \< 4545e2aa121aea304d33903099c03e29ed4fe50a; \>= 68a2d20b79b105f02dcbc52c211d7e62f98996b7, \< a7b583dc99c6cf4a96877017be1d08247e1ef2c7; \>= 68a2d20b79b105f02dcbc52c211d7e62f98996b7, \< ea2f45ab0e53b255f72c85ccd99e2b394fc5fceb; Linux 3.10.

### Is there a fix for CVE-2025-21976?

Yes. Fixed in Linux 4545e2aa121aea304d33903099c03e29ed4fe50a. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-21976?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4545e2aa121aea304d33903099c03e29ed4fe50a>
- patch: <https://git.kernel.org/stable/c/a7b583dc99c6cf4a96877017be1d08247e1ef2c7>
- patch: <https://git.kernel.org/stable/c/ea2f45ab0e53b255f72c85ccd99e2b394fc5fceb>
- other: <https://git.kernel.org/stable/c/b1a86a5ab0d44160534f495a3630646092d98e27>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21976>

HTML: <https://flawdb.com/CVE-2025-21976> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21976>
