# CVE-2025-21976: fbdev: hyperv_fb: Allow graceful removal of framebuffer

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `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.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2025-04-01T15:47:07.120Z
- Modified: 2026-10-21T13:18:03.923Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 68a2d20b79b105f02dcbc52c211d7e62f98996b7 before b1a86a5ab0d44160534f495a3630646092d98e27; from 68a2d20b79b105f02dcbc52c211d7e62f98996b7 before 4545e2aa121aea304d33903099c03e29ed4fe50a; from 68a2d20b79b105f02dcbc52c211d7e62f98996b7 before a7b583dc99c6cf4a96877017be1d08247e1ef2c7; from 68a2d20b79b105f02dcbc52c211d7e62f98996b7 before ea2f45ab0e53b255f72c85ccd99e2b394fc5fceb; 3.10 (not affected: before 3.10; from 6.6.160 up to 6.6.*; from 6.12.20 up to 6.12.*; from 6.13.8 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 3.10 before 6.12.20; from 6.13 before 6.13.8; 6.14

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

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

## Sources

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

---

Page: https://cve.day/CVE-2025-21976 · Whole record: https://cve.day/CVE-2025-21976.json · Rebuilt by cve.day 2026-11-25T22:58:55.919Z
