# CVE-2026-138821: fbdev: sh_mobile_lcdc: check for fb_deferred_io_init() error

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-11-30T13:25:17.946Z
- Modified: 2026-12-01T06:17:28.273Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

fbdev: sh_mobile_lcdc: 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 sh_mobile_lcdc_start() 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.

When the file is subsequently opened, fb_open() will dereference a NULL
pointer (calling fb_deferred_io_open()).

Fix this by checking for the error.

Also clear info->fbdefio in that case, so that sh_mobile_lcdc_stop() does
not attempt to clean up deferred I/O state that was never initialised.

(As written by CVE List.)

## Affected

- Linux Linux: from 186b89659c4c67cccead52961eab0ca3b23951dc before ccd7d2a7ca8eae95afa2ef8323bf185bf275205e; from 56c134f7f1b58be08bdb0ca8372474a4a5165f31 before ac709b87bd958ddb69541c1a3e21e2171aaab121; from 56c134f7f1b58be08bdb0ca8372474a4a5165f31 before e34ec5752ac1bcf012b294562a0426ee9ad5b156; from 56c134f7f1b58be08bdb0ca8372474a4a5165f31 before 4a9ad942a4b32138ca9167de22c6df02b02f8b09; from 56c134f7f1b58be08bdb0ca8372474a4a5165f31 before 8e21bbb7c2ce772ea3d672c1de662c5da1e9fbeb; from 56c134f7f1b58be08bdb0ca8372474a4a5165f31 before 3ec236beefafd91734f5539f12e1918a1392a60f; from 56c134f7f1b58be08bdb0ca8372474a4a5165f31 before 5192201aaac2a923ff98306e3ccda58718ee395f; from 5.15.149 before 5.15.226; 5.19 (not affected: before 5.19; 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/ccd7d2a7ca8eae95afa2ef8323bf185bf275205e>
- <https://git.kernel.org/stable/c/ac709b87bd958ddb69541c1a3e21e2171aaab121>
- <https://git.kernel.org/stable/c/e34ec5752ac1bcf012b294562a0426ee9ad5b156>
- <https://git.kernel.org/stable/c/4a9ad942a4b32138ca9167de22c6df02b02f8b09>
- <https://git.kernel.org/stable/c/8e21bbb7c2ce772ea3d672c1de662c5da1e9fbeb>
- <https://git.kernel.org/stable/c/3ec236beefafd91734f5539f12e1918a1392a60f>
- <https://git.kernel.org/stable/c/5192201aaac2a923ff98306e3ccda58718ee395f>

## Sources

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

---

Page: https://cve.day/CVE-2026-138821 · Whole record: https://cve.day/CVE-2026-138821.json · Rebuilt by cve.day 2026-12-01T06:32:14.010Z
