Input: synaptics-rmi4 - fix two device-controlled out-of-bounds writes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest2 patches 0 repliesNew
- v42 patches 2 repliesSuperseded
- v32 patches 2 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 2 patches | 0 replies | Superseded | |
| v1 | 2 patches | 2 replies | Superseded |
Changes in v5 from the cover letter
- 1/2: keep RMI_FN_MAX_IRQS at 6 and reject a count of 7 in rmi_scan_pdt_page(), after the RMI4_END_OF_PDT() check, instead of growing irq[] (Dmitry). New subject.
- 2/2: unchanged.
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | Input: synaptics-rmi4 - reject functions with more than 6 interrupt sourcesdrivers/ | +13 | 0 replies | |
| 2/2 | Input: synaptics-rmi4 - reject a PDT that grows between scansdrivers/ | +19 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [PATCH v5 0/2] Input: synaptics-rmi4 - fix two device-controlled out-of-bounds writes
Two fixes for out-of-bounds writes in the RMI4 core that a device can trigger through its Page Description Table.
1/2 rejects functions declaring 7 interrupt sources, a value the RMI4 specification reserves; the driver otherwise writes past fn->irq[].
2/2 rejects a PDT whose interrupt counts grow between the counting scan and the function-creating scan; the driver otherwise sets bits past the end of fn->irq_mask[].
Changes in v5:
- 1/2: keep RMI_FN_MAX_IRQS at 6 and reject a count of 7 in rmi_scan_pdt_page(), after the RMI4_END_OF_PDT() check, instead of growing irq[] (Dmitry). New subject.
- 2/2: unchanged.
v4: https://lore.kernel.org/linux-input/[email protected]/
Wei Jie Law (2):
Input: synaptics-rmi4 - reject functions with more than 6 interrupt
sources
Input: synaptics-rmi4 - reject a PDT that grows between scans
drivers/input/rmi4/rmi_driver.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)
Signature · 1 line
2.43.0