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 745BE1F0995 for ; Thu, 1 May 2025 14:19: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=1746109141; cv=none; b=Kjb1Yi79HiQUO0FAqWzqRlkIkuD/ikjnhPoCkO+jSwg0Z8GKwZZ2D92TGfG/hC8bGhqGpAaj/OlQ8+mjmwFDn3m/hozptGu5yCeY2nsuSQdP3noOsfgjL6ftYcXHIYK3mMNIlJbJEhYz+HJkXXoMFy94o/a94syCpITVNjuQFzY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746109141; c=relaxed/simple; bh=mnPn1tZuqkKlaEFr3W5Q5OzQvFTPemEij76og+vuPOw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AkWD+5vtFWS7LHzKbr4Vksd+pMB78tWHqpbHUoA783ego+rJdOgzRraByrXpR4iM/ekjboZEzIeaddgdpvZzmu/Z93LfPhNoenNJg04i1LScDP5n6vFgr0LsW8nlf6feT33/B5MqhtpI42dJDXPpoJY6PnijCaVD/hspUvF5tGQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TzVCWRsR; 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="TzVCWRsR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89850C4CEE3; Thu, 1 May 2025 14:19:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746109141; bh=mnPn1tZuqkKlaEFr3W5Q5OzQvFTPemEij76og+vuPOw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TzVCWRsRtEDiorm+zScAsTypau7S55GNfFfhUkK0ApN3Nuwll3z9kh2m4rUeEXqWc XHZX9YgXoWTW3bqc49utPTsS38V2Xtbb4ssthtxBaao+//VxmpIM9uILVoiG/ZdEpe k4GDCWlWGz2Kh9GX9M1Gz6iCeuX8cm+33tFTkPcs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49922: nfc: nfcmrvl: Fix potential memory leak in nfcmrvl_i2c_nci_send() Date: Thu, 1 May 2025 16:11:52 +0200 Message-ID: <2025050109-CVE-2022-49922-93fb@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=3453; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wqCIa4fQJd9KMwJqKuGn1b0MRC9aJUPuz2vfqr7ZUA4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDQdny+dc2LjDJjLSoY0tSHvxLLlvs0reW6v+WXR30 4lK/Z6LHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRCVsY5tk6tx7cadOkqvUz nict+pjA5p71VQwLLq56M99ZK72z7eWZnvKOrZPk463WAAA= 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: nfc: nfcmrvl: Fix potential memory leak in nfcmrvl_i2c_nci_send() nfcmrvl_i2c_nci_send() will be called by nfcmrvl_nci_send(), and skb should be freed in nfcmrvl_i2c_nci_send(). However, nfcmrvl_nci_send() will only free skb when i2c_master_send() return >=0, which means skb will memleak when i2c_master_send() failed. Free skb no matter whether i2c_master_send() succeeds. The Linux kernel CVE team has assigned CVE-2022-49922 to this issue. Affected and fixed versions =========================== Issue introduced in 4.4 with commit b5b3e23e4cace008e1a30e8614a484d14dfd07a1 and fixed in 4.9.333 with commit dd0ee55ead91fbb16889dbe7ff0b0f7c9e4e849d Issue introduced in 4.4 with commit b5b3e23e4cace008e1a30e8614a484d14dfd07a1 and fixed in 4.14.299 with commit 825656ae61e73ddc05f585e6258d284c87064b10 Issue introduced in 4.4 with commit b5b3e23e4cace008e1a30e8614a484d14dfd07a1 and fixed in 4.19.265 with commit c8e7d4a1166f063703955f1b2e765a6db5bf1771 Issue introduced in 4.4 with commit b5b3e23e4cace008e1a30e8614a484d14dfd07a1 and fixed in 5.4.224 with commit f30060efcf18883748a0541aa41acef183cd9c0e Issue introduced in 4.4 with commit b5b3e23e4cace008e1a30e8614a484d14dfd07a1 and fixed in 5.10.154 with commit 52438e734c1566f5e2bcd9a065d2d65e306c0555 Issue introduced in 4.4 with commit b5b3e23e4cace008e1a30e8614a484d14dfd07a1 and fixed in 5.15.78 with commit 5dfdac5e3f8db5f4445228c44f64091045644a3b Issue introduced in 4.4 with commit b5b3e23e4cace008e1a30e8614a484d14dfd07a1 and fixed in 6.0.8 with commit 92a1df9c6da20c02cf9872f8b025a66ddb307aeb Issue introduced in 4.4 with commit b5b3e23e4cace008e1a30e8614a484d14dfd07a1 and fixed in 6.1 with commit 93d904a734a74c54d945a9884b4962977f1176cd 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-49922 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/nfc/nfcmrvl/i2c.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/dd0ee55ead91fbb16889dbe7ff0b0f7c9e4e849d https://git.kernel.org/stable/c/825656ae61e73ddc05f585e6258d284c87064b10 https://git.kernel.org/stable/c/c8e7d4a1166f063703955f1b2e765a6db5bf1771 https://git.kernel.org/stable/c/f30060efcf18883748a0541aa41acef183cd9c0e https://git.kernel.org/stable/c/52438e734c1566f5e2bcd9a065d2d65e306c0555 https://git.kernel.org/stable/c/5dfdac5e3f8db5f4445228c44f64091045644a3b https://git.kernel.org/stable/c/92a1df9c6da20c02cf9872f8b025a66ddb307aeb https://git.kernel.org/stable/c/93d904a734a74c54d945a9884b4962977f1176cd