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 5669512D1F6 for ; Fri, 24 May 2024 15:11:09 +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=1716563469; cv=none; b=thkxCzN91Pc1BzJ/DrkYxpPVpfTG2bxmemLA2Qn2UmKszLLjHtB6ZZWSUR4dD4iCf+ZJV14wVvsySXxlqrRKujq3Th9PSS3f6Or7if0SZDfytmhg7QhloMI7gcEyrlLlU5VTBJhRCNf4JVLIybXQiDcrvW24oamGBGD+AHyCo80= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716563469; c=relaxed/simple; bh=QefYVgll8lJnV3nzEuHNfPyFpafKUy532wUJY49h4wE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SuaWuVPQVTBmLJ+SaOgkh4agAHA4diflJvE+OdGxaWGlDZm9JIY444XzVJYkZJJkIYCzmNtLUYv/3SThmxK3y7nsZbcAc/2TtFfVU3U7grpUXGC9xnfUVLxo6gHGpDvyWUTe6yzg4VSjUJ3GZw90E99XSvWFgXQCqmA1WM0OktY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JgS0P5Q5; 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="JgS0P5Q5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8AD2BC2BBFC; Fri, 24 May 2024 15:11:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716563468; bh=QefYVgll8lJnV3nzEuHNfPyFpafKUy532wUJY49h4wE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JgS0P5Q5eYXSKf5yS96Ev88A3qUEqVHiWbjSk6Iaz0MAIgftJ+wsHw6hchuSdegdX tvUSMqu9h7ALodA23WyD+sSxyHvt+QVL7Ln1mj5+u/HKVKmOqDDIH9c3HC/wtkhTYv Uj/FeK9bQ3E8+tS1ZIkvcvNcj0SQ6gNdbTGIJSdU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47518: nfc: fix potential NULL pointer deref in nfc_genl_dump_ses_done Date: Fri, 24 May 2024 17:09:38 +0200 Message-ID: <2024052432-CVE-2021-47518-632d@gregkh> X-Mailer: git-send-email 2.45.1 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=2870; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QefYVgll8lJnV3nzEuHNfPyFpafKUy532wUJY49h4wE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkBa9fcWCfgGc+/5OTrecqT0xrsb5ZIaU78bD9n/pvzt TbMoglZHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARsSKGBesi9kuGWiezWG6t /cnRcIM9ciPfT4YFvbIJrzweLr59JELi6FTrr6tu7Vd8CgA= 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: nfc: fix potential NULL pointer deref in nfc_genl_dump_ses_done The done() netlink callback nfc_genl_dump_ses_done() should check if received argument is non-NULL, because its allocation could fail earlier in dumpit() (nfc_genl_dump_ses()). The Linux kernel CVE team has assigned CVE-2021-47518 to this issue. Affected and fixed versions =========================== Issue introduced in 3.12 with commit ac22ac466a65 and fixed in 4.4.295 with commit 87cdb8789c38 Issue introduced in 3.12 with commit ac22ac466a65 and fixed in 4.9.293 with commit 69bb79a8f5bb Issue introduced in 3.12 with commit ac22ac466a65 and fixed in 4.14.258 with commit 811a75767477 Issue introduced in 3.12 with commit ac22ac466a65 and fixed in 4.19.221 with commit 3b861a40325e Issue introduced in 3.12 with commit ac22ac466a65 and fixed in 5.4.165 with commit 48fcd08fdbe0 Issue introduced in 3.12 with commit ac22ac466a65 and fixed in 5.10.85 with commit 83ea620a1be8 Issue introduced in 3.12 with commit ac22ac466a65 and fixed in 5.15.8 with commit fae9705d2810 Issue introduced in 3.12 with commit ac22ac466a65 and fixed in 5.16 with commit 4cd8371a234d 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-2021-47518 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/87cdb8789c38e44ae5454aafe277997c950d00ed https://git.kernel.org/stable/c/69bb79a8f5bb9f436b6f1434ca9742591b7bbe18 https://git.kernel.org/stable/c/811a7576747760bcaf60502f096d1e6e91d566fa https://git.kernel.org/stable/c/3b861a40325eac9c4c13b6c53874ad90617e944d https://git.kernel.org/stable/c/48fcd08fdbe05e35b650a252ec2a2d96057a1c7a https://git.kernel.org/stable/c/83ea620a1be840bf05089a5061fb8323ca42f38c https://git.kernel.org/stable/c/fae9705d281091254d4a81fa2da9d22346097dca https://git.kernel.org/stable/c/4cd8371a234d051f9c9557fcbb1f8c523b1c0d10