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 D98011C6889 for ; Thu, 27 Mar 2025 16:44:18 +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=1743093859; cv=none; b=XIN6pG72oK++J/qwtTUsEg/giRHHIPDA1ElTLrD9YY1P/BIneMDdkeERkOdvE7Zu5CJtog9HZBuEnspg/G9tBcDsKoQ3vGHu+6J4HhefdWswXIODMxDZ9e9mC5Mkyus3L3DZiZWIKKkFQ/M82xRzolVcG2BqmhePfHc8v5VFPVA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093859; c=relaxed/simple; bh=XVAxAWAZok1erUh9/zjVbjYFug2sZnw7merXBGX3CNM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jvwVuD602SGGJcyCJ4/vtZYobWmi+uUhEpJLoNnRWSFalfZAfRq9Ki2QlNaGrOrN30jxAT4W9q5zVsMeE+SuTiv8wDWje2WxYCnQPcyXnw/L0MTk02qdyb1x1h0tLHZR/cFMiYDAJJnp2/mml5+N/ve3RbbIDDtnAbeqTWjUIUU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OiE4Zfw4; 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="OiE4Zfw4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5E26C4CEE5; Thu, 27 Mar 2025 16:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093858; bh=XVAxAWAZok1erUh9/zjVbjYFug2sZnw7merXBGX3CNM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OiE4Zfw4yQISOrxj1nznWlHNShfcrQ7mVMchGEUlEooa3Hj63z84n3zTI9Vy6Kb85 dX2OO44z0GGglQ51IVWvUN4Dcf0fRtkZHmlpBv2o9AFNZmzDcZd8/Yqg+1MZMUyA+7 bcccsWDVu0YfKM8k7OXDKnMKFZzZxWnn531CdVGk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49743: ovl: Use "buf" flexible array for memcpy() destination Date: Thu, 27 Mar 2025 17:43:01 +0100 Message-ID: <2025032758-CVE-2022-49743-a049@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=2035; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XVAxAWAZok1erUh9/zjVbjYFug2sZnw7merXBGX3CNM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPG4QcnlnceiC96LLIXImd50NqnwufCsw7sSqh4f3y1 /KvmDft74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ6FxmmB8qYnOeazaLrkSO vL7Knlvvr6oEmjEsmP9f94yx9n7Xt4vmv8yXmXr+bgPrGgA= 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: ovl: Use "buf" flexible array for memcpy() destination The "buf" flexible array needs to be the memcpy() destination to avoid false positive run-time warning from the recent FORTIFY_SOURCE hardening: memcpy: detected field-spanning write (size 93) of single field "&fh->fb" at fs/overlayfs/export.c:799 (size 21) The Linux kernel CVE team has assigned CVE-2022-49743 to this issue. Affected and fixed versions =========================== Fixed in 5.15.93 with commit a77141a06367825d639ac51b04703d551163e36c Fixed in 6.1.11 with commit 07a96977b2f462337a9121302de64277b8747ab1 Fixed in 6.2 with commit cf8aa9bf97cadf85745506c6a3e244b22c268d63 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-49743 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/overlayfs/export.c fs/overlayfs/overlayfs.h 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/a77141a06367825d639ac51b04703d551163e36c https://git.kernel.org/stable/c/07a96977b2f462337a9121302de64277b8747ab1 https://git.kernel.org/stable/c/cf8aa9bf97cadf85745506c6a3e244b22c268d63