Skip to content

power: generic-adc-battery: fix out of bounds write

H. Nikolaus Schaller linux-pm lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2power: generic-adc-battery: fix out-of-bounds write when copying channel propertiesdrivers/power/supply/generic-adc-battery.c+4 -100 replies
2/2power: generic-adc-battery: check for duplicate properties copied from iio channelsdrivers/power/supply/generic-adc-battery.c+13 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] power: generic-adc-battery: fix out of bounds write

This patch set addresses two bugs in the gab_probe() function which are there since the first commit in 3.7-rc1:

1. there is an out of bounds write access by a miscalculated destination address for the memcpy()
2. if iio channels are already represented by default properties, they appear as duplicates in uevent

H. Nikolaus Schaller (2):
power: generic-adc-battery: fix out-of-bounds write when copying
channel properties
power: generic-adc-battery: check for duplicate properties copied from
iio channels

 drivers/power/supply/generic-adc-battery.c | 25 +++++++++++++++----------
 1 file changed, 15 insertions(+), 10 deletions(-)
Signature · 1 line
2.12.2