{"id":"CVE-2026-138821","summary":"fbdev: sh_mobile_lcdc: check for fb_deferred_io_init() error","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nfbdev: sh_mobile_lcdc: 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 sh_mobile_lcdc_start() ignores its return value.\n\nTherefore if an error arises in fb_deferred_io_init() (for instance, due\nto an allocation failure) info-\u003efbdefio_state is left NULL.\n\nWhen the file is subsequently opened, fb_open() will dereference a NULL\npointer (calling fb_deferred_io_open()).\n\nFix this by checking for the error.\n\nAlso clear info-\u003efbdefio in that case, so that sh_mobile_lcdc_stop() does\nnot attempt to clean up deferred I/O state that was never initialised.","modified":"2026-12-01T07:00:29.094137737Z","published":"2026-11-30T13:25:17.946Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138821.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3ec236beefafd91734f5539f12e1918a1392a60f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4a9ad942a4b32138ca9167de22c6df02b02f8b09"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5192201aaac2a923ff98306e3ccda58718ee395f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8e21bbb7c2ce772ea3d672c1de662c5da1e9fbeb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ac709b87bd958ddb69541c1a3e21e2171aaab121"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ccd7d2a7ca8eae95afa2ef8323bf185bf275205e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e34ec5752ac1bcf012b294562a0426ee9ad5b156"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138821.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138821"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"186b89659c4c67cccead52961eab0ca3b23951dc"},{"fixed":"ccd7d2a7ca8eae95afa2ef8323bf185bf275205e"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"56c134f7f1b58be08bdb0ca8372474a4a5165f31"},{"fixed":"ac709b87bd958ddb69541c1a3e21e2171aaab121"},{"fixed":"e34ec5752ac1bcf012b294562a0426ee9ad5b156"},{"fixed":"4a9ad942a4b32138ca9167de22c6df02b02f8b09"},{"fixed":"8e21bbb7c2ce772ea3d672c1de662c5da1e9fbeb"},{"fixed":"3ec236beefafd91734f5539f12e1918a1392a60f"},{"fixed":"5192201aaac2a923ff98306e3ccda58718ee395f"}]}],"versions":["v5.15.225","v5.15.224","v5.15.223","v5.15.222","v5.15.221","v5.15.220","v5.15.219","v5.15.218","v5.15.217","v5.15.216","v5.15.215","v5.15.214","v5.15.213","v5.15.212","v5.15.211","v5.15.210","v5.15.209","v5.15.208","v5.15.207","v5.15.206","v5.15.205","v5.15.204","v5.15.203","v5.15.202","v5.15.201","v5.15.200","v5.15.199","v5.15.198","v5.15.197","v5.15.196","v5.15.195","v5.15.194","v5.15.193","v5.15.192","v5.15.191","v5.15.190","v5.15.189","v5.15.188","v5.15.187","v5.15.186","v5.15.185","v5.15.184","v5.15.183","v5.15.182","v5.15.181","v5.15.180","v5.15.179","v5.15.178","v5.15.177","v5.15.176","v5.15.175","v5.15.174","v5.15.173","v5.15.172","v5.15.171","v5.15.170","v5.15.169","v5.15.168","v5.15.167","v5.15.166","v5.15.165","v5.15.164","v5.15.163","v5.15.162","v5.15.161","v5.15.160","v5.15.159","v5.15.158","v5.15.157","v5.15.156","v5.15.155","v5.15.154","v5.15.153","v5.15.152","v5.15.151","v5.15.150","v5.15.149"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138821.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.149"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.19.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-138821.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}