Repository navigation
Commit a370003
binder: fix possible UAF when freeing buffer
There is a race between the binder driver cleaning
up a completed transaction via binder_free_transaction()
and a user calling binder_ioctl(BC_FREE_BUFFER) to
release a buffer. It doesn't matter which is first but
they need to be protected against running concurrently
which can result in a UAF.
Signed-off-by: Todd Kjos <tkjos@google.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent b710848 commit a370003
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1941 | 1941 | | |
1942 | 1942 | | |
1943 | 1943 | | |
1944 | | - | |
1945 | | - | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
1946 | 1956 | | |
1947 | 1957 | | |
1948 | 1958 | | |
| |||
3551 | 3561 | | |
3552 | 3562 | | |
3553 | 3563 | | |
| 3564 | + | |
3554 | 3565 | | |
3555 | 3566 | | |
3556 | 3567 | | |
3557 | 3568 | | |
| 3569 | + | |
3558 | 3570 | | |
3559 | 3571 | | |
3560 | 3572 | | |
| |||
0 commit comments