title: binder: signal epoll threads of self-work
description: In the Linux kernel, the following vulnerability has been resolved:
binder: signal epoll threads of self-work
In (e)poll mode, threads often depend on I/O events to determine when
data is ready for consumption. Within binder, a thread may initiate a
command via BINDER_WRITE_READ without a read buffer and then make use
of epoll_wait() or similar to consume any responses afterwards.
It is then crucial that epoll threads are signaled via wakeup when they
queue their own work. Otherwise, they risk waiting indefinitely for an
event leaving their work unhandled. What is worse, subsequent commands
won't trigger a wakeup either as the thread has pending work.
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 457b9a6f09f0, lessThan: dd64bb8329ce, status: affected, versionType: git
version: 457b9a6f09f0, lessThan: 42beab162dce, status: affected, versionType: git
version: 457b9a6f09f0, lessThan: a423042052ec, status: affected, versionType: git
version: 457b9a6f09f0, lessThan: 82722b453dc2, status: affected, versionType: git
version: 457b9a6f09f0, lessThan: 90e09c016d72, status: affected, versionType: git
version: 457b9a6f09f0, lessThan: a7ae586f6f60, status: affected, versionType: git
version: 457b9a6f09f0, lessThan: 93b372c39c40, status: affected, versionType: git
version: 457b9a6f09f0, lessThan: 97830f3c3088, status: affected, versionType: git
}
{
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 2.6.29, status: affected
version: 0, lessThan: 2.6.29, status: unaffected, versionType: custom
version: 4.19.307, lessThanOrEqual: 4.19.*, status: unaffected, versionType: custom
version: 5.4.269, lessThanOrEqual: 5.4.*, status: unaffected, versionType: custom
version: 5.10.210, lessThanOrEqual: 5.10.*, status: unaffected, versionType: custom
version: 5.15.149, lessThanOrEqual: 5.15.*, status: unaffected, versionType: custom
version: 6.1.79, lessThanOrEqual: 6.1.*, status: unaffected, versionType: custom
version: 6.6.18, lessThanOrEqual: 6.6.*, status: unaffected, versionType: custom
version: 6.7.6, lessThanOrEqual: 6.7.*, status: unaffected, versionType: custom
version: 6.8, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
