{"id":"CVE-2026-138822","aliases":["CVE-2026-138822"],"related":[],"kind":"vulnerability","state":"published","title":"fbdev: smscufx: check for fb_deferred_io_init() error","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nfbdev: smscufx: check for fb_deferred_io_init() error\n\nfb_deferred_io_init() allocates deferred I/O state, populating\ninfo->fbdefio_state, or leaving it NULL if an error occurs.\n\nCurrently ufx_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->fbdefio_state is left NULL.\n\nfb_open() will then dereference a NULL pointer (calling\nfb_deferred_io_open()) as soon as ufx_ops_open() returns.\n\nAdditionally, if the allocation of info->fbdefio itself fails,\nufx_ops_open() sets info->fbdefio 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->fbdefio 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 3c8a63e22a08 (\"Add support for SMSC UFX6000/7000 USB display\nadapters\"), so target that for the fix.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfbdev: smscufx: check for fb_deferred_io_init() error\n\nfb_deferred_io_init() allocates deferred I/O state, populating\ninfo->fbdefio_state, or leaving it NULL if an error occurs.\n\nCurrently ufx_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->fbdefio_state is left NULL.\n\nfb_open() will then dereference a NULL pointer (calling\nfb_deferred_io_open()) as soon as ufx_ops_open() returns.\n\nAdditionally, if the allocation of info->fbdefio itself fails,\nufx_ops_open() sets info->fbdefio 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->fbdefio 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 3c8a63e22a08 (\"Add support for SMSC UFX6000/7000 USB display\nadapters\"), so target that for the fix.","source":"cvelist"}],"published":"2026-11-30T13:25:18.504Z","modified":"2026-11-30T14:17:36.257Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3c8a63e22a0802fd56380f6ab305b419f18eb6f5","fixed":"1bdc84c2f4bc95053eb9dc377dddc693c9c882da","status":"affected"},{"type":"git","introduced":"3c8a63e22a0802fd56380f6ab305b419f18eb6f5","fixed":"76e1fc68b4c6147477b69542772ea2559d1342dc","status":"affected"},{"type":"git","introduced":"3c8a63e22a0802fd56380f6ab305b419f18eb6f5","fixed":"66863d15504d5c039a9c0cb57ea763253eaa3b33","status":"affected"},{"type":"git","introduced":"3c8a63e22a0802fd56380f6ab305b419f18eb6f5","fixed":"b3b1f1fbf469983ef4f12510ac3b4468ded7b206","status":"affected"},{"type":"git","introduced":"3c8a63e22a0802fd56380f6ab305b419f18eb6f5","fixed":"78e9ae9d0ff757e6f3d4477111f8d96d5ad028be","status":"affected"},{"type":"git","introduced":"3c8a63e22a0802fd56380f6ab305b419f18eb6f5","fixed":"db62efc3ecbd4447d90714a8c613955206179b33","status":"affected"},{"type":"git","introduced":"3c8a63e22a0802fd56380f6ab305b419f18eb6f5","fixed":"4310425b130e4b66c4a8e02e9ed2e88afb265622","status":"affected"},{"type":"git","introduced":"3c8a63e22a0802fd56380f6ab305b419f18eb6f5","fixed":"8ea6c6e77ccf887f3e68c64f4c261071a345da1e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.2","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/1bdc84c2f4bc95053eb9dc377dddc693c9c882da","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/76e1fc68b4c6147477b69542772ea2559d1342dc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/66863d15504d5c039a9c0cb57ea763253eaa3b33","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b3b1f1fbf469983ef4f12510ac3b4468ded7b206","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/78e9ae9d0ff757e6f3d4477111f8d96d5ad028be","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/db62efc3ecbd4447d90714a8c613955206179b33","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4310425b130e4b66c4a8e02e9ed2e88afb265622","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8ea6c6e77ccf887f3e68c64f4c261071a345da1e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138822","url":"https://www.cve.org/CVERecord?id=CVE-2026-138822","licence":"CVE Terms of Use","modified":"2026-11-30T13:25:18.504Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138822","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138822","licence":"Public domain","modified":"2026-11-30T14:17:36.257Z"}],"updatedAt":"2026-11-30T14:32:30.969Z","epss":{"score":0.00177,"percentile":0.07596,"date":"2026-12-01T12:00:22.000Z"}}