{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138821","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.896Z","datePublished":"2026-11-30T13:25:17.946Z","dateUpdated":"2026-12-01T05:40:13.634Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:40:13.634Z"},"descriptions":[{"lang":"en","value":"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->fbdefio_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->fbdefio_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->fbdefio in that case, so that sh_mobile_lcdc_stop() does\nnot attempt to clean up deferred I/O state that was never initialised."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - Local only: ioctl(FBIOPUT_VSCREENINFO) on /dev/fbN goes do_fb_ioctl()->fb_set_var()->sh_mobile_lcdc_set_par()->sh_mobile_lcdc_stop()/sh_mobile_lcdc_start(). The patched start() ignored the fb_deferred_io_init() failure, and a later open()/mmap()/ioctl on the same node trips over it. No external data is involved. Only SuperH boards with sys-bus panels using deferred_io_msec (migor, kfr2r09) enable this path.\nAC:H - The bad state needs the GFP_KERNEL kzalloc/kvzalloc in fb_deferred_io_state_alloc() (the pagerefs kvzalloc in pre-7.1 fb_deferred_io_init()) to fail. smem_len is fixed at probe, so the -EINVAL path is unreachable. The attacker can re-run set_par with FB_ACTIVATE_FORCE without limit but cannot make that small allocation fail on demand. It takes OOM-victim or fault-injection conditions.\nPR:L - do_fb_ioctl() has no capability check on FBIOPUT_VSCREENINFO; the only gate is open permission on /dev/fbN, normally root:video 0660. An ordinary user in the video group, such as an embedded UI process, can drive set_par, open and mmap. Root is not needed, though user namespaces do not grant access.\nUI:N - The attacker issues the FBIOPUT_VSCREENINFO ioctl and the follow-up open()/mmap()/write fault on the framebuffer themselves. No other user or administrator has to do anything.\nS:U - The NULL dereference in fb_deferred_io_open() and the freed-pagerefs corruption in older kernels both happen in the same kernel context that serves the caller's fbdev syscalls. No VM, sandbox or IOMMU boundary is crossed.\nC:H - On affected stable kernels (fixed in 6.1.193/6.6.163/6.12.117/6.18.63), fb_deferred_io_cleanup() from sh_mobile_lcdc_stop() kvfree()s info->pagerefs without clearing it. A failed re-init keeps that freed pointer and the stale npagerefs, so an mmap write fault makes fb_deferred_io_pageref_get() index freed heap memory. That memory can be reclaimed by attacker-chosen objects, so this is a use-after-free.\nI:H - fb_deferred_io_pageref_get() then writes pageref->page, ->offset and list_add_tail() linkage into the freed pagerefs buffer, and a second FBIOPUT_VSCREENINFO makes fb_deferred_io_cleanup() kvfree() it again (a double free). Both give the attacker kernel heap corruption, not just a crash.\nA:H - On 7.1+ the NULL info->fbdefio_state is dereferenced by fb_deferred_io_open() inside fb_open(), and by release()/mmap()/cleanup(), with the fb_info lock held. info->fbdefio stays set, so every later open oopses again. On older kernels the use-after-free or double free corrupts the heap and crashes."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/video/fbdev/sh_mobile_lcdcfb.c"],"versions":[{"version":"186b89659c4c67cccead52961eab0ca3b23951dc","lessThan":"ccd7d2a7ca8eae95afa2ef8323bf185bf275205e","status":"affected","versionType":"git"},{"version":"56c134f7f1b58be08bdb0ca8372474a4a5165f31","lessThan":"ac709b87bd958ddb69541c1a3e21e2171aaab121","status":"affected","versionType":"git"},{"version":"56c134f7f1b58be08bdb0ca8372474a4a5165f31","lessThan":"e34ec5752ac1bcf012b294562a0426ee9ad5b156","status":"affected","versionType":"git"},{"version":"56c134f7f1b58be08bdb0ca8372474a4a5165f31","lessThan":"4a9ad942a4b32138ca9167de22c6df02b02f8b09","status":"affected","versionType":"git"},{"version":"56c134f7f1b58be08bdb0ca8372474a4a5165f31","lessThan":"8e21bbb7c2ce772ea3d672c1de662c5da1e9fbeb","status":"affected","versionType":"git"},{"version":"56c134f7f1b58be08bdb0ca8372474a4a5165f31","lessThan":"3ec236beefafd91734f5539f12e1918a1392a60f","status":"affected","versionType":"git"},{"version":"56c134f7f1b58be08bdb0ca8372474a4a5165f31","lessThan":"5192201aaac2a923ff98306e3ccda58718ee395f","status":"affected","versionType":"git"},{"version":"5.15.149","lessThan":"5.15.226","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/video/fbdev/sh_mobile_lcdcfb.c"],"versions":[{"version":"5.19","status":"affected"},{"version":"0","lessThan":"5.19","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.149","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/ccd7d2a7ca8eae95afa2ef8323bf185bf275205e"},{"url":"https://git.kernel.org/stable/c/ac709b87bd958ddb69541c1a3e21e2171aaab121"},{"url":"https://git.kernel.org/stable/c/e34ec5752ac1bcf012b294562a0426ee9ad5b156"},{"url":"https://git.kernel.org/stable/c/4a9ad942a4b32138ca9167de22c6df02b02f8b09"},{"url":"https://git.kernel.org/stable/c/8e21bbb7c2ce772ea3d672c1de662c5da1e9fbeb"},{"url":"https://git.kernel.org/stable/c/3ec236beefafd91734f5539f12e1918a1392a60f"},{"url":"https://git.kernel.org/stable/c/5192201aaac2a923ff98306e3ccda58718ee395f"}],"title":"fbdev: sh_mobile_lcdc: check for fb_deferred_io_init() error","x_generator":{"engine":"bippy-1.2.0"}}}}