Skip to content

Input: synaptics-rmi4 - fix two device-controlled out-of-bounds writes

Wei Jie Law linux-input lkml stable 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 0 repliesNew
  2. v42 patches 2 repliesSuperseded
  3. v32 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches0 repliesSuperseded
v12 patches2 repliesSuperseded

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 filesSizeRepliesApplied
1/2Input: synaptics-rmi4 - reject functions with more than 6 interrupt sourcesdrivers/input/rmi4/rmi_driver.c+13 -00 replies
2/2Input: synaptics-rmi4 - reject a PDT that grows between scansdrivers/input/rmi4/rmi_driver.c+19 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

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