From mboxrd@z Thu Jan 1 00:00:00 1970 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 4C63A1E86F for ; Wed, 24 Apr 2024 23:27:11 +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=1714001232; cv=none; b=m4AycZ1nC2yRRi32hM6QuaYuJa0+WQ4L3VmByHvJrYSQsYl030DkQnKZJ/06GRIIv9PPFBrg2NSW87h9HKlvQSd+dYYqZZPwsPudJMbjEMZVfVXOEq/DjPT7Yty3+86OLnBxENtj24jlMB1h4AT96mC00/hVgjYYP6RLSUV4XU8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714001232; c=relaxed/simple; bh=q2mC50rg5AobeEJaOW9bn841IYkK/xFSh0O3qbJm9eI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Tk50RG1fzuS4/znzWCb7NQM74sPapmM77sbgeFgLOm4Ge1gjRDFZObGHv8lcfIKdyaQLzUE8+rZcGvdz5dGj1O+7ZAuFCgG+Jilrmbrmk3NXFRGv+goaQ20EIMqDfykGUcxE7abCYClauLd2FfFlKrYnap5gSJePb6RC8ezoL6E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hwxwMOUJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hwxwMOUJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFC1AC113CD; Wed, 24 Apr 2024 23:27:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714001231; bh=q2mC50rg5AobeEJaOW9bn841IYkK/xFSh0O3qbJm9eI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hwxwMOUJvJ5VJxZPmcTCy7VIZ+sbHUhsruUh9S5vFjjp5s/SyebIm95raq/XkMT4X V8z5z4TPVdLlipMMd8fijOUYKUCQTqFOjSjesVR4lGMbtBlNLymQIE8lQbyah0uCzh tUn+6B7FRn9e0U1+ZKCOLAsYliSCDhx7pD4caDKJxOeyx+9I03oroSkYao3FY/aiQT qjWlat5tGdBD5lkcMtUdRlNEqVMgiKhy0vxiBExxt+B1H2WCbwJkL+4DLwS5UaZ3DO l3GMXj/J0bPgOlWcJFTzNSwGJegkVlLk03TB5jJT8mrH6KfANe7jCLgCFSI21eVif0 T1C2WdQlH7WZg== From: Lee Jones To: linux-cve-announce@vger.kernel.org Cc: Lee Jones Subject: CVE-2024-26926: binder: check offset alignment in binder_get_object() Date: Wed, 24 Apr 2024 16:27:10 -0700 Message-ID: <20240424232709.718930-2-lee@kernel.org> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog 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=2357; i=lee@kernel.org; h=from:subject; bh=q2mC50rg5AobeEJaOW9bn841IYkK/xFSh0O3qbJm9eI=; b=owEBbQKS/ZANAwAKAVGvii+H/HdhAcsmYgBmKZVNj6NGqtCs5b7OtOfEjkurEL5iUJajOPvRV g7o122jjzqJAjMEAAEKAB0WIQR2tsk1o74gmpTwh0hRr4ovh/x3YQUCZimVTQAKCRBRr4ovh/x3 YVtGD/kBS1BotWvno1EHPFoJSBRi4vLO32uZSc/E1rIhFY0oZtcaHIwBsh/HfAsc0Ws4cde65Zp 98zrSqsKKpSe1rTR7VGjDIyBq2ZkkS3Nhet1kgHUIQaS7EPRXlYLelubYwF2nIQEUjERZYZgr0r kcRz9ZNbOPWZclrtp6KUVErQej5B+i7VBEAR2gDEOUsrUREQUxynYQ4o2Ou6ExacihVYCl74Owz FUrWbqjUcGmTTEkHXRvpZUyQhZAkBc1oyA1j/ZwjCK/c/FvtrWMxJzzMyDozLwbCWQhGbPZRj2W oWVuUI+zplpdRoJLuNfnPmDFOBQa0NoRV5MwozbVZf4Ulz3wOIPIk5nAVRMOsAzB7z/l82Jv7s/ uNLUI7yo7hsAWvnfyOWx8A8SfuMS0GY/HsH0GYeowRCVKcS/Y4vMzug9Cs+i+QASXFc8onvPkfU cLEBYW1GP9W4RbI3ZIN5Uz3gYozZpf6//4zkAFppHYLNY1kR89wY+4c552n9akBarJ78tE9KZSL sep+tO1Rgy0b2pIYyoEXaldw55ayVY9AFFgwDOP1XjoMEnPLw2jfBn4O+snUup4PSbPI1uVc9Ci gwB1Ke5T1OrCvDnHMuV8zzNt6ts2G/8W7OPWc0ntchknP1QT0KigRCXzEQoUuNqRWB34cDRL5u5 i73i3ulNKrXvjsg== X-Developer-Key: i=lee@kernel.org; a=openpgp; fpr=76B6C935A3BE209A94F0874851AF8A2F87FC7761 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: binder: check offset alignment in binder_get_object() Commit 6d98eb95b450 ("binder: avoid potential data leakage when copying txn") introduced changes to how binder objects are copied. In doing so, it unintentionally removed an offset alignment check done through calls to binder_alloc_copy_from_buffer() -> check_buffer(). These calls were replaced in binder_get_object() with copy_from_user(), so now an explicit offset alignment check is needed here. This avoids later complications when unwinding the objects gets harder. It is worth noting this check existed prior to commit 7a67a39320df ("binder: add function to copy binder object from buffer"), likely removed due to redundancy at the time. The Linux kernel CVE team has assigned CVE-2024-26926 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 6d98eb95b450 and fixed in 6.9-rc5 with commit aaef73821a3b Issue introduced in 5.4.226 with commit c056a6ba35e0 Issue introduced in 5.10.157 with commit 23e9d815fad8 Issue introduced in 5.15.17 with commit 7a9ad4aceb02 Issue introduced in 5.16.3 with commit 66e12f5b3a97 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-2024-26926 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/aaef73821a3b0194a01bd23ca77774f704a04d40