В ядре Linux была устранена следующая уязвимость: binder: fix leaked fd fixups on TF_UPDATE_TXN explained When a TF_UPDATE_TXN transaction explained async транзакция в замороженном процессе, устаревшая транзакция освобождается с kfree() напрямую. Это пропускает binder_free_txn_fixups(), пропуская все записи binder_txn_fd_fixup и ссылки на их файлы структуры fget()'d. Утечка файловых повторов никогда не достигает нуля, поэтому объекты struct-файлов постоянно закрепляются в памяти.
Они выживают при выходе из процесса и накапливаются при вызовах до исчерпания file-max. Каждый другой путь очистки транзакций (binder_free_transaction(), binder_transaction() пути ошибок, binder_release_work()) правильно вызывает binder_free_txn_fixups(). Добавьте недостающий вызов перед kfree() в блок очистки t_outdated.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: binder: fix leaked fd fixups on TF_UPDATE_TXN supersede When a TF_UPDATE_TXN transaction supersedes a pending async transaction in a frozen process, the outdated transaction is freed with kfree() directly. This skips binder_free_txn_fixups(), leaking all binder_txn_fd_fixup entries and their fget()'d struct file references. The leaked file refcounts never reach zero, so the struct file objects are permanently pinned in memory. They survive process exit and accumulate across invocations until file-max exhaustion. Every other transaction cleanup path (binder_free_transaction(), binder_transaction() error paths, binder_release_work()) correctly calls binder_free_txn_fixups(). Add the missing call before kfree() in the t_outdated cleanup block.