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 85C383C0B for ; Wed, 19 Jun 2024 13:37:01 +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=1718804221; cv=none; b=uFm4J5VqSNjYG63vJe0C/fuMmmy7fBRXx+pvo2PlytwonysSeOmT5IS6HsZZK01/76Ine1ys7djeyQs9id0g9msBtSRwSvp5fsLsqCT9fuKYu32r22kkuZsawi0UvC2sE7PMeoLoo/VwaoPjuUSfNXQg71wOwK+Vnk90HPV7ybk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718804221; c=relaxed/simple; bh=uqhoI0lbkFbvINrcvS9g1dXOoi23qlips6hKzKXAlh0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QcdKUfVBnklmqCKK1yKA8vxr3TmTGmKVmcSO6Ce+OEgJBuW4A9U0bOIXAVZAX9Sm6SL+xvSiGFjEdVFYOiLYw2hCXuFxEdG8PJLfAER5bwqWdRrip54sACXo0cc0l3VmRMBmf1cDqgHnUV0n++6I8KC3GlzBbm4O502Z/I3HRtg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=f7JJHi3v; 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="f7JJHi3v" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C6CAC4AF1A; Wed, 19 Jun 2024 13:37:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718804221; bh=uqhoI0lbkFbvINrcvS9g1dXOoi23qlips6hKzKXAlh0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=f7JJHi3vFLQgqysnbqCcoM+QNsqR482y7GDhMpXJocG7Wlojq3iEfRMHkNWUO7/eC NMFHUkp0eeGjzMCTc6OZ4xV8OwJZI6MkgcdV396ulKurV6qt/EMn+y8IsrOV5eaxlR uvhecHykUQEElK2JJlKLzuwNHQuz/u2O5NWlWhoA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38554: ax25: Fix reference count leak issue of net_device Date: Wed, 19 Jun 2024 15:36:03 +0200 Message-ID: <2024061952-CVE-2024-38554-29b0@gregkh> X-Mailer: git-send-email 2.45.2 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=2848; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uqhoI0lbkFbvINrcvS9g1dXOoi23qlips6hKzKXAlh0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlF93Y0r28NUlS8I1TInL5xIZPystfFuz7dYVrvLbf40 J9vqRv3dcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE3K8wLFjq+fTFr+o8gTV+ p1e114aLf5j8U59hwaHnYf3cLGIbp19YozUnIZ3f+f2bNwA= 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: ax25: Fix reference count leak issue of net_device There is a reference count leak issue of the object "net_device" in ax25_dev_device_down(). When the ax25 device is shutting down, the ax25_dev_device_down() drops the reference count of net_device one or zero times depending on if we goto unlock_put or not, which will cause memory leak. In order to solve the above issue, decrease the reference count of net_device after dev->ax25_ptr is set to null. The Linux kernel CVE team has assigned CVE-2024-38554 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit d01ffb9eee4a and fixed in 6.1.93 with commit 3ec437f9bbae Issue introduced in 5.17 with commit d01ffb9eee4a and fixed in 6.6.33 with commit 965d940fb741 Issue introduced in 5.17 with commit d01ffb9eee4a and fixed in 6.8.12 with commit 8bad3a20a27b Issue introduced in 5.17 with commit d01ffb9eee4a and fixed in 6.9.3 with commit eef95df9b752 Issue introduced in 5.17 with commit d01ffb9eee4a and fixed in 6.10-rc1 with commit 36e56b1b002b Issue introduced in 4.14.277 with commit ef0a2a056572 Issue introduced in 4.19.240 with commit e2b558fe507a Issue introduced in 5.4.190 with commit 418993bbaafb Issue introduced in 5.10.112 with commit 5ea00fc60676 Issue introduced in 5.15.35 with commit 9af0fd5c4453 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-38554 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: net/ax25/ax25_dev.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/3ec437f9bbae68e9b38115c4c91de995f73f6bad https://git.kernel.org/stable/c/965d940fb7414b310a22666503d2af69459c981b https://git.kernel.org/stable/c/8bad3a20a27be8d935f2aae08d3c6e743754944a https://git.kernel.org/stable/c/eef95df9b752699bddecefa851f64858247246e9 https://git.kernel.org/stable/c/36e56b1b002bb26440403053f19f9e1a8bc075b2