From mboxrd@z Thu Jan 1 00:00:00 1970 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 328531C7B64 for ; Mon, 21 Oct 2024 20:12:52 +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=1729541572; cv=none; b=VEj3UlUwr3y5ytGp9+w00p4lbBr5c96JUxx6PMVXeGoWyM2OmzJrwVmljrb+Mll21+e2HPzRPwxHxtUL6SuoAsM2jBE3cudso39uKYHGq10LnFXRLac77ci08/h+oX0HsPZ8OOQyG/F3enALWBDCDX3pF39UPevQjcgoeUCfSME= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541572; c=relaxed/simple; bh=FHl61ZJl94oCfLiXZSckuMcL4jPN8FupWgr9lReiUvU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EzEkaXGDC0DKmgZ2LkFw4EkZCDHwFAKlxvaWVLFCWQOaSECxGUrqT3It7Zgdul3z/csBpkjYaLE1l6NWzzZh3v3LPz/sADT/BNDcVKeSbnryla5zYvuAMf7RdtiTK3ORdd+1CQ7GQHYhwekq8blCWpLS9Us3na2v4brSCFwPltk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gg339vHo; 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="gg339vHo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA5B7C4CEC3; Mon, 21 Oct 2024 20:12:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541572; bh=FHl61ZJl94oCfLiXZSckuMcL4jPN8FupWgr9lReiUvU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gg339vHomJBladO11tdxW58fGmBfPG7atSlcCkqsWrBm8cxEmvSCgVlL+yF4iAhfd Q7PEsS7391Wp0r8R32AuFM4Bo0DDPG2oMSzoxHF0SxgphuTuxRAylH6fWxXG8g4o8c fr7srp5DWLXW1QWkgfD8N23Jm/8orlnlHN3ATBa0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49008: can: can327: can327_feed_frame_to_netdev(): fix potential skb leak when netdev is down Date: Mon, 21 Oct 2024 22:06:40 +0200 Message-ID: <2024102151-CVE-2022-49008-d62f@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=1983; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FHl61ZJl94oCfLiXZSckuMcL4jPN8FupWgr9lReiUvU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliW+SnH7+ymjvlg++dh6LGXocf8/m3rk5JNXnUej/av VgwwJyzI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayZi3Dgv1Pd07jcdy2RGhS afJCqaVW8qXfuxgWTGn+cfr2lZCC36UxYZrxOhPqzx9ZDAA= 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: can: can327: can327_feed_frame_to_netdev(): fix potential skb leak when netdev is down In can327_feed_frame_to_netdev(), it did not free the skb when netdev is down, and all callers of can327_feed_frame_to_netdev() did not free allocated skb too. That would trigger skb leak. Fix it by adding kfree_skb() in can327_feed_frame_to_netdev() when netdev is down. Not tested, just compiled. The Linux kernel CVE team has assigned CVE-2022-49008 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 43da2f07622f and fixed in 6.0.12 with commit 797b1d9fc0e1 Issue introduced in 6.0 with commit 43da2f07622f and fixed in 6.1 with commit 8fa452cfafed 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-49008 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/net/can/can327.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/797b1d9fc0e1f4351e4ad49b078c1a3cdc0d4a08 https://git.kernel.org/stable/c/8fa452cfafed521aaf5a18c71003fe24b1ee6141