fbdev: fix potential buffer overflow in do_register_framebuffer()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 523b84dc7ccea9c4d79126d6ed1cf9033cf83b05| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
fbdev: fix potential buffer overflow in do_register_framebuffer()
The current implementation may lead to buffer overflow when: 1. Unregistration creates NULL gaps in registered_fb[] 2. All array slots become occupied despite num_registered_fb < FB_MAX 3. The registration loop exceeds array bounds
Add boundary check to prevent registered_fb[FB_MAX] access.
From the CVE record · Linux
The Linux kernel's do_register_framebuffer() can access beyond the registered_fb array when framebuffer unregistration leaves gaps and all array slots later become occupied. The input does not specify how an attacker could trigger this condition, whether network or local access or authentication is needed, or whether user interaction is required.
Anyone running the Linux kernel should check their version; affected versions are not specified.