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 0FD771A3163 for ; Wed, 26 Feb 2025 01:58:33 +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=1740535113; cv=none; b=nPpO/K14Ga0RTIiqiOEkwfePLld337g1nRw9EY2n/1oLi6X5LFsg87B19B30kaOEv2eMyRzBrvGkgy6CLyIyq9wacUShk5Md4j6G6uezk2IKqw+ZrU6E2rBNSvoXjNFeixmIf7kFfc0WHNvJ368s0+ckEo0CzrK1cCXR5BYkM4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535113; c=relaxed/simple; bh=OwKCRYLO63dLy96f2PLeJ2MtqNXAytmIROCXha6dmjs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZMuTvvpqzdfh3z5l/irvmWeGWHbgg7+xcAw6KG4uojvlQlntpZwUUlpThyr6kK8aocM0rD9ETIIavu7ER/SxdCQBF9kjjG13ek5oImWPHgy/Oyl0BENRRgRuAzxdHdIRGQIAzO76R8O3ckmZhZjM+SfmGAtEaYa8qzIVH+HtSn0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IRNra/ve; 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="IRNra/ve" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D55D3C4CEDD; Wed, 26 Feb 2025 01:58:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535112; bh=OwKCRYLO63dLy96f2PLeJ2MtqNXAytmIROCXha6dmjs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IRNra/vewDLudvTjZ9LjXpr0JoyXJ9fpiezCqpxbdocTkFGHW0kzrHSt7f0HL1G53 0RctQt0mKjOJYhl52w29IXxzGh+wmDJrGAZ0ftFuD3fxf4nXLFY0YSHdpjs7clf8Eu PX13VcAvZJegdbV0QA1hL0zhPYcb8i5AxP5X2O3I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49127: ref_tracker: implement use-after-free detection Date: Wed, 26 Feb 2025 02:55:32 +0100 Message-ID: <2025022605-CVE-2022-49127-15e6@gregkh> X-Mailer: git-send-email 2.48.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=1871; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OwKCRYLO63dLy96f2PLeJ2MtqNXAytmIROCXha6dmjs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SmxvpV9O7P1sm6121Gt6Nq/9pRUmBgxd8r97lj2v/ ff9gppBRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEZAvDgo0eOnYmjC+sNiZ9 uDt1v9AXm6+adxgWbDV9OT9m2ezgjXmlnU/PmBo2SG4SAAA= 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: ref_tracker: implement use-after-free detection Whenever ref_tracker_dir_init() is called, mark the struct ref_tracker_dir as dead. Test the dead status from ref_tracker_alloc() and ref_tracker_free() This should detect buggy dev_put()/dev_hold() happening too late in netdevice dismantle process. The Linux kernel CVE team has assigned CVE-2022-49127 to this issue. Affected and fixed versions =========================== Fixed in 5.17.3 with commit 3743c9de303fa36c2e2ca2522ab280c52bcafbd2 Fixed in 5.18 with commit e3ececfe668facd87d920b608349a32607060e66 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-49127 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: include/linux/ref_tracker.h lib/ref_tracker.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/3743c9de303fa36c2e2ca2522ab280c52bcafbd2 https://git.kernel.org/stable/c/e3ececfe668facd87d920b608349a32607060e66