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 32F25217F34 for ; Wed, 18 Jun 2025 11:02:24 +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=1750244545; cv=none; b=AhdyYdIC9OtyYspNZQkl29gMg7hRQPtE6LLatZmF225hIb0pa1kD92L0ZhlacajNrHePgyN/eAZf9oif+QAJm4AZhgjf8Mbw1lI4OusIPgbFIYxhecY4PReQ7m+F1LvO1P+F9dDNMlSqKjiRKVmmP2odwwr4JtYHanuRTJ+jdRM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244545; c=relaxed/simple; bh=D3lhM6HJJlvAucFGFAl+AHQ7NG9+eMgK1WurHc9h3uU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qP3uiOMB0vhewGYB+nGMxoFT94yYdTe/YZs3b3/7Let3XRS0cnbARvOjbXLfHlUdwZfjA4FBs6SENypTremM44KNPb7Cx9wvVkxEYADVNTBtbGEn0udvERCguMUA/VLvbrpxZQWxBtMsPmqOgoOmBtKs/9E39gtGUbiSI/cJRuE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TWH1bw+i; 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="TWH1bw+i" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 715A2C4CEE7; Wed, 18 Jun 2025 11:02:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244544; bh=D3lhM6HJJlvAucFGFAl+AHQ7NG9+eMgK1WurHc9h3uU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TWH1bw+i/smMbstfF4yocnO/TVWPekCKia18E+GxZjZ/Sk+JHyIgkhB4rsa5hIoNt jbK0F54tEm0FijOnVowlHVTsfRIsj5a4z2sBYD+8SsGa86loINRFqWAmgN94chgjzL vakWW4demr42l9eS+WaZ57iyppVij13q1ATsIdko= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49956: staging: rtl8712: fix use after free bugs Date: Wed, 18 Jun 2025 13:00:21 +0200 Message-ID: <2025061812-CVE-2022-49956-6aa4@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=3331; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4r+y5qhMAX6CUlJWzZAxIomRnFPYCMz+oMNRVGHFYIE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc2yiNvxX3d2s1Xni2azVwStfdeY82nUvxyk01SSiQ uBgVllyRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkjADDXIGDHU2l/ELWC5fY HmrMSnXSqlkRwTA/N+WD7cf/JyzmlAn+ebPge1UI+yRpAA== 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: staging: rtl8712: fix use after free bugs _Read/Write_MACREG callbacks are NULL so the read/write_macreg_hdl() functions don't do anything except free the "pcmd" pointer. It results in a use after free. Delete them. The Linux kernel CVE team has assigned CVE-2022-49956 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.37 with commit 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef and fixed in 4.9.328 with commit 7dce6b0ee7d78667d6c831ced957a08769973063 Issue introduced in 2.6.37 with commit 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef and fixed in 4.14.293 with commit 376e15487fec837301d888068a3fcc82efb6171a Issue introduced in 2.6.37 with commit 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef and fixed in 4.19.258 with commit 9fd6170c5e2d0ccd027abe26f6f5ffc528e1bb27 Issue introduced in 2.6.37 with commit 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef and fixed in 5.4.213 with commit d0aac7146e96bf39e79c65087d21dfa02ef8db38 Issue introduced in 2.6.37 with commit 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef and fixed in 5.10.142 with commit 19e3f69d19801940abc2ac37c169882769ed9770 Issue introduced in 2.6.37 with commit 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef and fixed in 5.15.66 with commit dc02aaf950015850e7589696521c7fca767cea77 Issue introduced in 2.6.37 with commit 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef and fixed in 5.19.8 with commit b1727def850904e4b8ba384043775672841663a1 Issue introduced in 2.6.37 with commit 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef and fixed in 6.0 with commit e230a4455ac3e9b112f0367d1b8e255e141afae0 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-49956 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/staging/rtl8712/rtl8712_cmd.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/7dce6b0ee7d78667d6c831ced957a08769973063 https://git.kernel.org/stable/c/376e15487fec837301d888068a3fcc82efb6171a https://git.kernel.org/stable/c/9fd6170c5e2d0ccd027abe26f6f5ffc528e1bb27 https://git.kernel.org/stable/c/d0aac7146e96bf39e79c65087d21dfa02ef8db38 https://git.kernel.org/stable/c/19e3f69d19801940abc2ac37c169882769ed9770 https://git.kernel.org/stable/c/dc02aaf950015850e7589696521c7fca767cea77 https://git.kernel.org/stable/c/b1727def850904e4b8ba384043775672841663a1 https://git.kernel.org/stable/c/e230a4455ac3e9b112f0367d1b8e255e141afae0