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 ABF42283CB3 for ; Wed, 18 Jun 2025 11:03:53 +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=1750244633; cv=none; b=hMEob9evbjxzC88MZwz0FImFcE8ceLSoE8i1Qn7EvkBVBdXiIjR/q4uYZSoXebo7bsmUaaezeJEcOEA2dx+RFTBrLM1nllspSuvfZG807rXuykC6mtbqjwXMvjgjlbocTDYS5coH5+iT4Is7NOHHJgb3eLQqBmLI23XuoOECppY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244633; c=relaxed/simple; bh=97duLyZLNlJ0Qvj8LlsUzpFPgybjObpzTneM68CcTpY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fj9WmtCJ4mWcY3mULJkJyKNUQbd6L1tivgZLHwGl2Jf2rLuuQ1JwvvkXGM6rNEkCTr7J9RMuO97P7GX0gST8TbH2fjq5HIlfLQjWxNUZyCfxFknyXsxRdZesLK7n/8OY/li71jMqxhGLFlTqdcq09Mz1wW+2HRbXnP+Otlxa+oc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=F9+5sV+K; 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="F9+5sV+K" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C532AC4CEF0; Wed, 18 Jun 2025 11:03:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244633; bh=97duLyZLNlJ0Qvj8LlsUzpFPgybjObpzTneM68CcTpY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=F9+5sV+KM/cqnz+VOdGZWe5vppaLwgYQOExv3mPCYOR2D8eex0swLBtWhYsMJPzjM Qi9Z+OO4unyEK399b8lMGFrH+RtCcVwUqyvATvn4Hrf5K2bUAYqQ7zX3BAaxO+Ps62 8E05+E9yIwI6wvFTTqXvOYFypuzdrf1yF3OHjYHY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49988: binder_alloc: add missing mmap_lock calls when using the VMA Date: Wed, 18 Jun 2025 13:00:53 +0200 Message-ID: <2025061823-CVE-2022-49988-d597@gregkh> X-Mailer: git-send-email 2.49.0 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=2250; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FtPr9DMJso1Mu6Wv+hzUQRN6AYD/+A+IWeFtIf6LTbo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc9wLGLgfdpbXtBpLHOPkal4n39tukNwUdPUu2yeN+ oSa5xkdsSwMgkwMsmKKLF+28RzdX3FI0cvQ9jTMHFYmkCEMXJwCMJEPvAwLpv2ULU9ZK3545UL7 iZIruSQakrULGObHXjt87dh340OZjSs/9DxOeOMiy7sQAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: binder_alloc: add missing mmap_lock calls when using the VMA Take the mmap_read_lock() when using the VMA in binder_alloc_print_pages() and when checking for a VMA in binder_alloc_new_buf_locked(). It is worth noting binder_alloc_new_buf_locked() drops the VMA read lock after it verifies a VMA exists, but may be taken again deeper in the call stack, if necessary. The Linux kernel CVE team has assigned CVE-2022-49988 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.61 with commit 622ef885a89ad04cfb76ee478fb44f051125d1f1 and fixed in 5.15.64 with commit 577d9c05cc48c5242bcf719c06a5baf3105473ad Issue introduced in 5.19.2 with commit 1ec3f76a436d750fd5023caec5da0494fc2870d2 and fixed in 5.19.6 with commit 7b0163c1b07b7ff1717aa975821c40df98786ddc Issue introduced in 5.18.18 with commit 925e6b6f82c9c80ab3c17acbde8d16f349da7d26 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-2022-49988 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_alloc.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/577d9c05cc48c5242bcf719c06a5baf3105473ad https://git.kernel.org/stable/c/7b0163c1b07b7ff1717aa975821c40df98786ddc https://git.kernel.org/stable/c/44e602b4e52f70f04620bbbf4fe46ecb40170bde