mtd: slram: remove failed entries from the device list
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < d8dcbbfa0d695a5244059aa34a2e81f3e8df1082| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mtd: slram: remove failed entries from the device list
register_device() links a new slram_mtdlist entry before allocating all of the state needed by the entry. If a later allocation, memremap(), or mtd_device_register() fails, the partially initialized entry remains on the global list. A later cleanup can then dereference or free invalid state from that failed entry.
Unwind the partially initialized entry and clear the list tail on each failure path after the entry has been linked.
From the CVE record · Linux
The Linux kernel's slram driver can leave a partially initialized device entry on a global list if allocation, memremap(), or device registration fails. Later cleanup can dereference or free invalid state. The input does not specify an attack path, authentication requirements, or user interaction.
Engineers running the Linux kernel with the slram driver should check their versions; affected versions are not specified.