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 1F0E243172 for ; Wed, 18 Jun 2025 11:02:59 +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=1750244580; cv=none; b=UiNbdgvepfTfuSko5j/Qg2VYP/yAc2lltkIYEmTDF/tPgTTcEWD08p36Q1HOazYLOxqlhECK9sFW+qILeDspK1BfGG7eXxSh0ziCURfuvWr1w629+k8OrfFdip0tKOI1AwYh9/aa+iNCl96K7OUGlYx9BZqBeJdGOigsTXRxmLs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244580; c=relaxed/simple; bh=Kl3F6rJGZRHaQYhUisgRCiPZOA7pGFgGVwj1CPa9hYA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oRQ+cWIGRAzI5JDFjXOeylrJ1VTkCYzgC+KyTJcnTa68oHEg8HSf5nLMADKEciYCzGAd2/Hj/oI8QQV5mrmm2mUjNhR30zX9aayFoWpAHcooIQ6lQr8fVQ/PGqFyHbNEnbCUQBvmItcuzLVJoloWMmIbLM143wtwvSL3GLRTXVA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=np7L68Nj; 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="np7L68Nj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44467C4CEF0; Wed, 18 Jun 2025 11:02:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244579; bh=Kl3F6rJGZRHaQYhUisgRCiPZOA7pGFgGVwj1CPa9hYA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=np7L68NjhMmflnLXzp6QX+X6W9VQNKLXs8DdlsJQ0ppIwJ+G4tzqnV77LHFwhz4Cc hSxxP45wFOmM/eahHl7FUSIpYPBQg4RMAoPF/1SNjJWxD/yM5opBii0VguRRY3pIil BDl7K2vW9dTL9ls8eZSpKlV6N15bPDFNRYi8gnvU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49950: misc: fastrpc: fix memory corruption on open Date: Wed, 18 Jun 2025 13:00:15 +0200 Message-ID: <2025061810-CVE-2022-49950-2eaf@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=2680; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wIqhYSsbpBJE+OLJ4SVj8pIrdPJDE1hNhhxw1kpIpjw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc6xaRJ4UvebQKRW7YX9IU15G8QRPwVlbnocq9RMFx J7oimZ1xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwES2XWRYsPNePINrQWgn84Z/ wk9POG7iOd51h2F+zLaU2G8He+fqBPbWr1O3av14QTUSAA== 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: misc: fastrpc: fix memory corruption on open The probe session-duplication overflow check incremented the session count also when there were no more available sessions so that memory beyond the fixed-size slab-allocated session array could be corrupted in fastrpc_session_alloc() on open(). The Linux kernel CVE team has assigned CVE-2022-49950 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit f6f9279f2bf0e37e2f1fb119d8832b8568536a04 and fixed in 5.4.213 with commit f8632b8bb53ebc005d8f24a68a0c1f9678c0e908 Issue introduced in 5.1 with commit f6f9279f2bf0e37e2f1fb119d8832b8568536a04 and fixed in 5.10.142 with commit 5cf2a57c7a01a0d7bdecf875a63682f542891b1b Issue introduced in 5.1 with commit f6f9279f2bf0e37e2f1fb119d8832b8568536a04 and fixed in 5.15.66 with commit cf20c3533efc89578ace94fa20a9e63446223c72 Issue introduced in 5.1 with commit f6f9279f2bf0e37e2f1fb119d8832b8568536a04 and fixed in 5.19.8 with commit e0578e603065f120a8759b75e0d6c216c7078a39 Issue introduced in 5.1 with commit f6f9279f2bf0e37e2f1fb119d8832b8568536a04 and fixed in 6.0 with commit d245f43aab2b61195d8ebb64cef7b5a08c590ab4 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-49950 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/misc/fastrpc.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/f8632b8bb53ebc005d8f24a68a0c1f9678c0e908 https://git.kernel.org/stable/c/5cf2a57c7a01a0d7bdecf875a63682f542891b1b https://git.kernel.org/stable/c/cf20c3533efc89578ace94fa20a9e63446223c72 https://git.kernel.org/stable/c/e0578e603065f120a8759b75e0d6c216c7078a39 https://git.kernel.org/stable/c/d245f43aab2b61195d8ebb64cef7b5a08c590ab4