CVE-2026-138826: fbdev: sh_mobile_lcdcfb: Restore the per-overlay sysfs attributes
In the Linux kernel, the following vulnerability has been resolved:
fbdev: shmobilelcdcfb: Restore the per-overlay sysfs attributes
The ovl files documented in Documentation/ABI/testing/sysfs-devices-platform-shmobilelcdcfb no longer exist.
Commit a979182a2453 ("fbdev: lcdcfb: Register sysfs groups through driver core") moved the attributes from each overlay's framebuffer device to the platform driver's devgroups and renamed them overlay. There is now only one set of attributes for the whole LCDC. The callbacks still expect devgetdrvdata() to return a struct fbinfo, but the platform device holds struct shmobilelcdcpriv, so they access the wrong structure.
Restore the documented names and register the group on each overlay's framebuffer device with deviceaddgroups(). Remove it with deviceremovegroups() before unregistering the framebuffer. Skip creation when devoffbinfo(info) is NULL, as the old devicecreatefile() calls did.
Drop the CONFIGFBDEVICE guard, since the driver already depends on it.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch a979182a2453
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel's sh_mobile_lcdcfb framebuffer driver are relevant. The issue concerns per-overlay sysfs attributes associated with that driver's framebuffer overlay devices.
How can I identify an affected kernel?
An affected kernel may lack the documented ovl_* sysfs files and instead expose a single set of renamed overlay_* attributes on the LCDC platform device. In that state, the attribute callbacks can interpret the platform device's driver data as the wrong structure.
What does the fix change?
The fix restores the documented ovl_* attribute names and registers their sysfs group on each overlay framebuffer device. It also removes the group before framebuffer unregistration and does not create it when the framebuffer device is unavailable.