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 49B741C7B64 for ; Mon, 21 Oct 2024 20:13:04 +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=1729541584; cv=none; b=IVnWdH9goBJ1T7V++at+Z/NyFzd03lzq5gvxWH/ugs0MCIIXrqpgsLaOA7KGsEnZL6di7JvnQxRDN2z1PEqW11fGJaCQ6cvrui0brOnD8o2IAb4ToAaWj3cPAKLEqkvr2SteYS6xncXfAwEWjKsNEZ+QcufTD/aQhBuu1fyDpas= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541584; c=relaxed/simple; bh=MD1ukcm15FXtnkr1H0QEZ1ep6SfqOOfwCuM0IUZJ/S8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JGzBjy7Le641Jd1Maj+vD47nenpHdiBQHF/Tmhyg4t5BtYl+7MC8rZZ8eVJSByy9GXTcZmqvY6OB2eTbU/bo4Z2VeKaxLMOltXKsAkjQUmBWuhpGnxki0IzNCo19IaRelzbwoOraynjg2+13XkQj2fY6bipgzzUMfpqBPrmaFk8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=d4aK7c+N; 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="d4aK7c+N" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C23F5C4CEC3; Mon, 21 Oct 2024 20:13:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541584; bh=MD1ukcm15FXtnkr1H0QEZ1ep6SfqOOfwCuM0IUZJ/S8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=d4aK7c+Nk6/ZDZIToo282jNgoSBibQJrfv3aVckzbFTpwDxPGKI/iPTTnAGk191nB KJik4Pxsjm5njJwGRhy+v4wNXNRj647iOOy5K8PGhgqz9Ryz46+RprO7Y6BwAwOfx5 BE7ykYfPV1caF62dEPKh43KhfYRzBJAhfhR972uY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49012: afs: Fix server->active leak in afs_put_server Date: Mon, 21 Oct 2024 22:06:44 +0200 Message-ID: <2024102152-CVE-2022-49012-8eb3@gregkh> X-Mailer: git-send-email 2.47.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=1818; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MD1ukcm15FXtnkr1H0QEZ1ep6SfqOOfwCuM0IUZJ/S8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliWxRY1+0UrlLl7C8MaLvqbaVuuG/OEiezuvMC/dbKf auOTWTuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIkELGeYn18TWpz2ovaeidMO 2b3iWpKTJlkeZFiwi51j3tMpr3PNpNaudFjek9W232Q3AA== 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: afs: Fix server->active leak in afs_put_server The atomic_read was accidentally replaced with atomic_inc_return, which prevents the server from getting cleaned up and causes rmmod to hang with a warning: Can't purge s=00000001 The Linux kernel CVE team has assigned CVE-2022-49012 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 2757a4dc1849 and fixed in 6.0.12 with commit c5078548c29c Issue introduced in 6.0 with commit 2757a4dc1849 and fixed in 6.1 with commit ef4d3ea40565 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-49012 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: fs/afs/server.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/c5078548c29c735f71b05053659c0cb294e738ad https://git.kernel.org/stable/c/ef4d3ea40565a781c25847e9cb96c1bd9f462bc6