Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DEED814A8E for ; Tue, 21 May 2024 15:04:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716303869; cv=none; b=V0RyYLrlCTCWPNDCXUrIFLaYi0PjE+EEml2ZAhvh0AMedvBGpZM/WCdl1SrpTBBN2TB4rk/Fjuz1bP/f6kTav/vIdoNQc7dG5C2Yyy1qk7OiLugmBo49UIzmEviZmausxrCphzFU/9JF+lZC3ip+ZP2g009oqU2hz7KAobDX48M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716303869; c=relaxed/simple; bh=VY9H2OlBQOyYB3ioVqqxFN8ADvLzKVtVAGy24r1RhUA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ufycrNVvD60RRuQOOmoyyGnfRmqpY1VeY17SigA0NW68p1zRx3SlsU95lMuvB4fdBO+IkSH+8LURSFoiLa/3jyOkhqguoCuX83pIIEEi4G+05FoCCMNpE2rRHjQ85efEXrmqQjQ371oq2Gf3sZFtcOdjjDXYkJqutgWmOKbcKfo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gcM/I4yU; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="gcM/I4yU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51498C2BD11; Tue, 21 May 2024 15:04:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716303868; bh=VY9H2OlBQOyYB3ioVqqxFN8ADvLzKVtVAGy24r1RhUA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gcM/I4yUx9oHaUqghbT52if/OnxUDUkqv+1ICovMoK+A4v1c+VIwLRsxcu8iDzbxo xRIy2KXgo9LAlGfEyYWNnXHmkdGOQoXGsj/sWXKfVRifQkPhXYBKn/C9THt6mNgLVL OMsc1SYzI4U1AJP8FhTCS5y6WJjOxQPSg9P7JbYQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47360: binder: make sure fd closes complete Date: Tue, 21 May 2024 17:03:37 +0200 Message-ID: <2024052137-CVE-2021-47360-756a@gregkh> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2424; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VY9H2OlBQOyYB3ioVqqxFN8ADvLzKVtVAGy24r1RhUA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+20/6VlWmFU8V/GRyfFboNcPAedkfWe+dNagySt24f serOYJZHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR9SsMc0V2lXK/NTJyVLp0 XJPX5tzhwmkKaxjmCjkwVi73szsU+6HzAH+fku3kfxfZAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: binder: make sure fd closes complete During BC_FREE_BUFFER processing, the BINDER_TYPE_FDA object cleanup may close 1 or more fds. The close operations are completed using the task work mechanism -- which means the thread needs to return to userspace or the file object may never be dereferenced -- which can lead to hung processes. Force the binder thread back to userspace if an fd is closed during BC_FREE_BUFFER handling. The Linux kernel CVE team has assigned CVE-2021-47360 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit 80cd795630d6 and fixed in 5.4.150 with commit aa2c274c279f Issue introduced in 5.0 with commit 80cd795630d6 and fixed in 5.10.70 with commit d5b0473707fa Issue introduced in 5.0 with commit 80cd795630d6 and fixed in 5.14.9 with commit b95483d8d94b Issue introduced in 5.0 with commit 80cd795630d6 and fixed in 5.15 with commit 5fdb55c1ac95 Issue introduced in 4.20.1 with commit 27564d8d5d12 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2021-47360 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/android/binder.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/aa2c274c279ff365a06a4cba263f04965895166e https://git.kernel.org/stable/c/d5b0473707fa53b03a5db0256ce62b2874bddbc7 https://git.kernel.org/stable/c/b95483d8d94b41fa31a84c1d86710b7907a37621 https://git.kernel.org/stable/c/5fdb55c1ac9585eb23bb2541d5819224429e103d