{"id":"CVE-2026-138823","summary":"fbdev: udlfb: check for fb_deferred_io_init() error","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nfbdev: udlfb: check for fb_deferred_io_init() error\n\nfb_deferred_io_init() allocates deferred I/O state, populating\ninfo-\u003efbdefio_state, or leaving it NULL if an error occurs.\n\nCurrently dlfb_ops_open() ignores its return value.\n\nTherefore if an error arises in fb_deferred_io_init() (for instance, due to\nan allocation failure) info-\u003efbdefio_state is left NULL.\n\nfb_open() will then dereference a NULL pointer (calling\nfb_deferred_io_open()) as soon as dlfb_ops_open() returns.\n\nAdditionally, if the allocation of info-\u003efbdefio itself fails,\ndlfb_ops_open() sets info-\u003efbdefio to NULL and invokes\nfb_deferred_io_init() regardless, hitting BUG_ON(!fbdefio).\n\nFix this by only invoking fb_deferred_io_init() if the allocation\nsucceeded, and checking for the error.\n\nThe driver already supports operating without deferred I/O, so in either\ncase fall back to that by setting info-\u003efbdefio to NULL.\n\nThe ignored return value was introduced in commit 56c134f7f1b5 (\"fbdev:\nTrack deferred-I/O pages in pageref struct\").\n\nHowever, the BUG_ON() issue originates from the earlier\ncommit 5bea1fbf9423 (\"staging: udlfb: fix incorrect fb_defio\nimplementation for multiple framebuffers\"), so target that for the fix.","modified":"2026-12-01T21:02:33.518570044Z","published":"2026-11-30T13:25:19.070Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138823.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/04e56b8f72c6dd7378d394a84d218ac2631f7bcc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1efe1012f6c2790f8c75034dbd0ce7cddd2f1d89"},{"type":"WEB","url":"https://git.kernel.org/stable/c/33763f4ec91602db6bc21633b18e563ae1b1b44e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/49e594079d7e741016ca4bd70c40964bc75cc72d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a88b2d3c78d92a3c4ff7fdfff6c5c322283f0e33"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b4165e730e7807b90fd1b0e847f7fb826c674027"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b8d058d9520315db836b07c4d0ef04d170b9f9a5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eae055f33e41e1d3e1a7e905bdcb1e9f196ed31d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138823.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138823"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5bea1fbf942363e4114a086aefc67cdca21be7f0"},{"fixed":"04e56b8f72c6dd7378d394a84d218ac2631f7bcc"},{"fixed":"a88b2d3c78d92a3c4ff7fdfff6c5c322283f0e33"},{"fixed":"1efe1012f6c2790f8c75034dbd0ce7cddd2f1d89"},{"fixed":"49e594079d7e741016ca4bd70c40964bc75cc72d"},{"fixed":"33763f4ec91602db6bc21633b18e563ae1b1b44e"},{"fixed":"b4165e730e7807b90fd1b0e847f7fb826c674027"},{"fixed":"b8d058d9520315db836b07c4d0ef04d170b9f9a5"},{"fixed":"eae055f33e41e1d3e1a7e905bdcb1e9f196ed31d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138823.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.37"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138823.json"}}],"schema_version":"1.9.2"}