phy: rockchip-samsung-dcphy: fix out-of-range max_register
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.507.2.47.3In the Linux kernel, the following vulnerability has been resolved:
phy: rockchip-samsung-dcphy: fix out-of-range max_register
The PHY register block is 64KB, so with a register stride of 4 the last accessible register sits at offset 0xfffc. max_register names 0x10000, one register past the end of the mapping: dumping the registers through the regmap debugfs interface reads beyond the ioremapped region and oopses on the unmapped page. The oops fires with the regmap lock held, so later PHY operations deadlock.
From the CVE record · Linux
The rockchip-samsung-dcphy driver sets a register limit beyond its mapped PHY register block. A local user who can dump its registers through the regmap debugfs interface can trigger a kernel oops; subsequent PHY operations then deadlock. Access to that debugfs interface is required.
Teams running Linux kernels with the rockchip-samsung-dcphy driver should check their versions; affected versions are not specified.