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 7F03214264C for ; Tue, 21 May 2024 14:39:49 +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=1716302389; cv=none; b=qdxJoneD6lNtHbhxpNWwn0wMrkqMgDaK1jYVQooGJ1XzzmsDSk/9T7hHgARLYRJqmNd6PvYDCHUQi+JtQh2HWPn+Ck5WTBYC0vj1q2mq9M9YEo6/Ae65yXVDlPE6o16cixEvn4jR4xCW7sM9mwLjHSuLXYkqUpAD7W1MwA1xYeU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302389; c=relaxed/simple; bh=z8KMssnaRaUNVU/72z+mxnIJ3zuXx4aLgcygvFGZTYA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BiMMOOTfkckl0cAUJgNsv0HzxsCfOs3xO47h4zF4hdepvjoEVD4sliWiq8p3Ww1/4fTe4LQV67GCR+P4vdQrjvJ6sEgpQO/x8wTIv9c2TAlTd3NVLZFbHnk4dhcW0SU55sHqyOckxlExYWJ9PDoliW52iPEzPUZoCQG9FgkMJCg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dr4h5kBG; 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="dr4h5kBG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 097BFC2BD11; Tue, 21 May 2024 14:39:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302389; bh=z8KMssnaRaUNVU/72z+mxnIJ3zuXx4aLgcygvFGZTYA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dr4h5kBGcezR0zJAZ4p3QARZthDiN6OfST37HJo6L64fU3Ce6AGHCeqn+8AZCUcyM w1bN7Wx9X+by2+uPZg/H1maN9lEhXELhJbDpfslSCVUT72pv/AL5MqZZ6Hwhpox4U5 l1kI0I2lJ7kK90jPWFeJEFffewdHLFdrFQfQls0w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47307: cifs: prevent NULL deref in cifs_compose_mount_options() Date: Tue, 21 May 2024 16:35:41 +0200 Message-ID: <2024052127-CVE-2021-47307-f8a6@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=1964; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=z8KMssnaRaUNVU/72z+mxnIJ3zuXx4aLgcygvFGZTYA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+G/W/HeXa+uNGorTB5u1lPyYZTIxg3nZsK+9HjU0Lu GadeCb1tyOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAm0vGPYX4RYzCDqvO+K/8E QzzDTkw8ZPXTo4RhwfpjWQ2FwuEdj7pyDnWcXPU39erUQAA= 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: cifs: prevent NULL deref in cifs_compose_mount_options() The optional @ref parameter might contain an NULL node_name, so prevent dereferencing it in cifs_compose_mount_options(). Addresses-Coverity: 1476408 ("Explicit null dereferenced") The Linux kernel CVE team has assigned CVE-2021-47307 to this issue. Affected and fixed versions =========================== Fixed in 5.4.135 with commit f7d1fa65e742 Fixed in 5.10.53 with commit e58c162789be Fixed in 5.13.5 with commit ae3d181f4e91 Fixed in 5.14 with commit 03313d1c3a2f 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-47307 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: fs/cifs/cifs_dfs_ref.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/f7d1fa65e74263d11f90ddd33b4d4cd905a93759 https://git.kernel.org/stable/c/e58c162789becede894d3e94c0ce6695a2ef5796 https://git.kernel.org/stable/c/ae3d181f4e912f51af7776ea165f199b16fc165d https://git.kernel.org/stable/c/03313d1c3a2f086bb60920607ab79ac8f8578306