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:
- Unregistration creates NULL gaps in registered_fb[]
- All array slots become occupied despite num_registered_fb < FB_MAX
- The registration loop exceeds array bounds
Add boundary check to prevent registered_fb[FB_MAX] access.