CVE-2026-138823

fbdev: udlfb: check for fb_deferred_io_init() error

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

fbdev: udlfb: check for fb_deferred_io_init() error

fb_deferred_io_init() allocates deferred I/O state, populating
info->fbdefio_state, or leaving it NULL if an error occurs.

Currently dlfb_ops_open() ignores its return value.

Therefore if an error arises in fb_deferred_io_init() (for instance, due to
an allocation failure) info->fbdefio_state is left NULL.

fb_open() will then dereference a NULL pointer (calling
fb_deferred_io_open()) as soon as dlfb_ops_open() returns.

Additionally, if the allocation of info->fbdefio itself fails,
dlfb_ops_open() sets info->fbdefio to NULL and invokes
fb_deferred_io_init() regardless, hitting BUG_ON(!fbdefio).

Fix this by only invoking fb_deferred_io_init() 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 BUG_ON() issue originates from the earlier
commit 5bea1fbf9423 ("staging: udlfb: fix incorrect fb_defio
implementation for multiple framebuffers"), so target that for the fix.

Analysis

AI-generated

Technical impact

In the Linux kernel’s framebuffer (fbdev) udlfb driver, a missing error check allows the fb_deferred_io_init function to fail silently. If the function returns an error, the driver leaves fbdefio_state NULL but still proceeds, causing fb_open to dereference a NULL pointer and trigger a kernel BUG_ON. This results in an immediate crash of the system. The flaw could also allow an attacker to trigger a denial‑of‑service by accessing the framebuffer device after an allocation failure, potentially affecting any user that can interact with the device.

Affected Systems

All Linux kernel releases that include the fbdev:udlfb driver before the patch identified in the advisory are affected. The advisory lists no specific version range, so any distribution kernel that shipped a vulnerable driver without the fix is at risk.

Risk and Exploitability

The vulnerability is a classic null‑pointer dereference (CWE‑476). No public exploitation of this bug is known, and the EPSS score is unavailable. Because the flaw requires successful opening of the udlfb framebuffer device, the most likely attack vector is local privileged or privileged software. The available evidence suggests a moderate to high impact on availability, but the exploitation probability is limited by the need for direct access to the framebuffer driver. The CISA KEV catalog does not list the issue, reinforcing the inference that active exploitation is not observed.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a release that incorporates the fix for the udlfb null pointer dereference, such as the latest stable kernel from the distribution’s security team.
  • If a custom kernel is used, apply the patch that checks the return value of fb_deferred_io_init and conditionally invokes the deferred I/O initialization, as referenced in the Git commit list provided.
  • Until the patch can be applied, avoid using the udlfb framebuffer driver by disabling the corresponding kernel module or removing any graphical applications that depend on it.

Generated by OpenCVE AI on November 30, 2026 at 16:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: fbdev: udlfb: check for fb_deferred_io_init() error fb_deferred_io_init() allocates deferred I/O state, populating info->fbdefio_state, or leaving it NULL if an error occurs. Currently dlfb_ops_open() ignores its return value. Therefore if an error arises in fb_deferred_io_init() (for instance, due to an allocation failure) info->fbdefio_state is left NULL. fb_open() will then dereference a NULL pointer (calling fb_deferred_io_open()) as soon as dlfb_ops_open() returns. Additionally, if the allocation of info->fbdefio itself fails, dlfb_ops_open() sets info->fbdefio to NULL and invokes fb_deferred_io_init() regardless, hitting BUG_ON(!fbdefio). Fix this by only invoking fb_deferred_io_init() 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 BUG_ON() issue originates from the earlier commit 5bea1fbf9423 ("staging: udlfb: fix incorrect fb_defio implementation for multiple framebuffers"), so target that for the fix.
Title fbdev: udlfb: check for fb_deferred_io_init() error
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:25 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM