CVE-2026-138823: fbdev: udlfb: check for fb_deferred_io_init() error
In the Linux kernel, the following vulnerability has been resolved:
fbdev: udlfb: check for fbdeferredioinit() error
fbdeferredioinit() allocates deferred I/O state, populating info->fbdefiostate, or leaving it NULL if an error occurs.
Currently dlfbopsopen() ignores its return value.
Therefore if an error arises in fbdeferredioinit() (for instance, due to an allocation failure) info->fbdefiostate is left NULL.
fbopen() will then dereference a NULL pointer (calling fbdeferredioopen()) as soon as dlfbopsopen() returns.
Additionally, if the allocation of info->fbdefio itself fails, dlfbopsopen() sets info->fbdefio to NULL and invokes fbdeferredioinit() regardless, hitting BUGON(!fbdefio).
Fix this by only invoking fbdeferredioinit() if the allocation succeeded, and checking for the error.
The driver already supports operating without deferred I/O, so in either case fall back to that by setting info->fbdefio to NULL.
The ignored return value was introduced in commit 56c134f7f1b5 ("fbdev: Track deferred-I/O pages in pageref struct").
However, the BUGON() issue originates from the earlier commit 5bea1fbf9423 ("staging: udlfb: fix incorrect fbdefio implementation for multiple framebuffers"), so target that for the fix.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In dlfb_ops_open(), check the result of fb_deferred_io_init() and invoke it only if allocation of info->fbdefio succeeded; on error, set info->fbdefio to NULL so the driver falls back to operating without deferred I/O.