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 322252D12F5 for ; Tue, 30 Dec 2025 12:14:35 +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=1767096875; cv=none; b=H0gjkpSd9Gk4/ZWt6064Uvy76MtZ3+quyz4PACOnVBCLuEky3NmHQuEsW/Za4yW0hd5+Ed9fk+p+/e/JK1355TO5zmMIUhuZGy9visdPT5dZ9CNgBr3NrSlL+96GviaMtbFFS1xR9u90SQ3mVPv4dD/PAVsFgJmpso0swj0kgL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096875; c=relaxed/simple; bh=U+yMXiIK9w4l4GiOvVDnTFOUtZcSRRh9NKUQiNnT2E0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cHoo2DTtsYB2r2INJeAwCxf3yJ3U3Q4MIvDhVkVivzYBh5DbSxowska/fXsbXyVEeFAAfTCrU0vEonhL6O90aCKkPYmF8r7FaszLrHxVQOmZ/7mjeo0Cm6MfyAkKFu7ko8+Bf0PWhuSHrD04ciCZjvbyr85ZqswLXzSR5R1qGyE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=I7abTXeE; 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="I7abTXeE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4E7BC4CEFB; Tue, 30 Dec 2025 12:14:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096875; bh=U+yMXiIK9w4l4GiOvVDnTFOUtZcSRRh9NKUQiNnT2E0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=I7abTXeEAkNvGg3IQ247wTzKxszezGRfIqU4ccnsOuL96nSb/MvVnxO81hI+ktrx1 YVSe1FqCUnTJXbYoGhAanvjoL/hKBTsijNBguXlTk5bZC7ccmdz8swFYseMPUWlEMg 6iF/atN03evlClyahsUaSrL8qw/UFppwcwohcq7I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50834: nfc: Fix potential resource leaks Date: Tue, 30 Dec 2025 13:13:20 +0100 Message-ID: <2025123017-CVE-2022-50834-2135@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3297; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tzkNHJq6oNv1I/4KKa4lV24bcOOQGzUW95OFn37blHE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB+/a52h6WbKrrTy07sPVF1cyGt4u8dOMnHP/iNaJQ m2f768MO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi5x4xzOHbY6c/50fUzIMd ey7KHD+zbJVW1F+GecY7/hWtkN2ce2Cmr5h+wPb/jNs1cgE= 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: Fix potential resource leaks nfc_get_device() take reference for the device, add missing nfc_put_device() to release it when not need anymore. Also fix the style warnning by use error EOPNOTSUPP instead of ENOTSUPP. The Linux kernel CVE team has assigned CVE-2022-50834 to this issue. Affected and fixed versions =========================== Issue introduced in 3.13 with commit 5ce3f32b5264b337bfd13a780452a17705307725 and fixed in 4.14.303 with commit 277f0d0a9084e7454e5532c823a7a876a7b00af7 Issue introduced in 3.13 with commit 5ce3f32b5264b337bfd13a780452a17705307725 and fixed in 4.19.270 with commit d1d912e7f82d7216ba4e266048ec1d1f5ea93839 Issue introduced in 3.13 with commit 5ce3f32b5264b337bfd13a780452a17705307725 and fixed in 5.4.229 with commit d8e410315ad393b23520b5db0706be853589c548 Issue introduced in 3.13 with commit 5ce3f32b5264b337bfd13a780452a17705307725 and fixed in 5.10.163 with commit e0f5c962c066e769c187f037fedc883f8abd4e82 Issue introduced in 3.13 with commit 5ce3f32b5264b337bfd13a780452a17705307725 and fixed in 5.15.87 with commit b63bc2db244c1b57e36f16ea5f2a1becda413f68 Issue introduced in 3.13 with commit 5ce3f32b5264b337bfd13a780452a17705307725 and fixed in 6.0.19 with commit a743128fca394a43425020a4f287d3168d94d04f Issue introduced in 3.13 with commit 5ce3f32b5264b337bfd13a780452a17705307725 and fixed in 6.1.5 with commit b32f6bef248562bb5191ada527717ea50b319466 Issue introduced in 3.13 with commit 5ce3f32b5264b337bfd13a780452a17705307725 and fixed in 6.2 with commit df49908f3c52d211aea5e2a14a93bbe67a2cb3af 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-50834 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/nfc/netlink.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/277f0d0a9084e7454e5532c823a7a876a7b00af7 https://git.kernel.org/stable/c/d1d912e7f82d7216ba4e266048ec1d1f5ea93839 https://git.kernel.org/stable/c/d8e410315ad393b23520b5db0706be853589c548 https://git.kernel.org/stable/c/e0f5c962c066e769c187f037fedc883f8abd4e82 https://git.kernel.org/stable/c/b63bc2db244c1b57e36f16ea5f2a1becda413f68 https://git.kernel.org/stable/c/a743128fca394a43425020a4f287d3168d94d04f https://git.kernel.org/stable/c/b32f6bef248562bb5191ada527717ea50b319466 https://git.kernel.org/stable/c/df49908f3c52d211aea5e2a14a93bbe67a2cb3af