Skip to content
Snippets Groups Projects
Commit c49ecdd6 authored by Dennis Cagle's avatar Dennis Cagle Committed by Ecco Park
Browse files

leds: qpnp-flash: Fix Use-after-free(UAF) for debugfs


Fix UAF where two threads can open and close the same file. Second
open will cause the private data for the first file to be overwritten.
When the first file is closed and the private data is freed, this makes
the now-shared private data OOB for the second thread.

Bug: 33781694
Bug: 33781694, 33863909
CRs-Fixed: 1109763
Change-Id: I1c4618d5be99e140abf0f3ea0d7f485897db5ab2
Signed-off-by: default avatarAnkit Sharma <ansharma@codeaurora.org>
Signed-off-by: default avatarDennis Cagle <d-cagle@codeaurora.org>
Signed-off-by: default avatarSteve Pfetsch <spfetsch@google.com>
parent e503cc82
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment