# CVE-2026-138823: fbdev: udlfb: check for fb_deferred_io_init() error

- Severity: not scored yet
- 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.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-11-30T13:25:19.070Z
- Modified: 2026-11-30T14:17:36.407Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 5bea1fbf942363e4114a086aefc67cdca21be7f0 before 04e56b8f72c6dd7378d394a84d218ac2631f7bcc; from 5bea1fbf942363e4114a086aefc67cdca21be7f0 before a88b2d3c78d92a3c4ff7fdfff6c5c322283f0e33; from 5bea1fbf942363e4114a086aefc67cdca21be7f0 before 1efe1012f6c2790f8c75034dbd0ce7cddd2f1d89; from 5bea1fbf942363e4114a086aefc67cdca21be7f0 before 49e594079d7e741016ca4bd70c40964bc75cc72d; from 5bea1fbf942363e4114a086aefc67cdca21be7f0 before 33763f4ec91602db6bc21633b18e563ae1b1b44e; from 5bea1fbf942363e4114a086aefc67cdca21be7f0 before b4165e730e7807b90fd1b0e847f7fb826c674027; from 5bea1fbf942363e4114a086aefc67cdca21be7f0 before b8d058d9520315db836b07c4d0ef04d170b9f9a5; from 5bea1fbf942363e4114a086aefc67cdca21be7f0 before eae055f33e41e1d3e1a7e905bdcb1e9f196ed31d; 2.6.37 (not affected: before 2.6.37; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/04e56b8f72c6dd7378d394a84d218ac2631f7bcc>
- <https://git.kernel.org/stable/c/a88b2d3c78d92a3c4ff7fdfff6c5c322283f0e33>
- <https://git.kernel.org/stable/c/1efe1012f6c2790f8c75034dbd0ce7cddd2f1d89>
- <https://git.kernel.org/stable/c/49e594079d7e741016ca4bd70c40964bc75cc72d>
- <https://git.kernel.org/stable/c/33763f4ec91602db6bc21633b18e563ae1b1b44e>
- <https://git.kernel.org/stable/c/b4165e730e7807b90fd1b0e847f7fb826c674027>
- <https://git.kernel.org/stable/c/b8d058d9520315db836b07c4d0ef04d170b9f9a5>
- <https://git.kernel.org/stable/c/eae055f33e41e1d3e1a7e905bdcb1e9f196ed31d>

## Sources

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

---

Page: https://cve.day/CVE-2026-138823 · Whole record: https://cve.day/CVE-2026-138823.json · Rebuilt by cve.day 2026-11-30T14:32:21.796Z
