Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795100645; b=fPHdJ6Oa/j5p+H45/mVHgbQoP0fbCYnVHglYaOuDef6jpLISdFOQKFllHZMf9WSGElit VqPx9ADLfnXl/Dy+shpwyNHcrEZI+ogWY/xNXw/FaSzeGzgMHZfPfzskNTDEIB+4hgi8/ Q1sn3HKfEw1t14tYRIHDrrJx88Gko0n2rldv6HUE/jRu2k+JJNX0i51Jc6FmdPYOs1JnN KXvTLYCXY+OzTy1L3PRHVNH+BgA/2YSb1VKazTqxQKnCtr9yz/BXy5c78Qg2HkC2rgfv6 n40cn/ACUP9SDA5zPkFAw1DkBoXhUQGIyUZ0XidDUajMFDpoAYQDvRdDBh56GPP9cWw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100645; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=K55Y508hR0FQqkR24yBkzs0g+HvdQyAYcsnooY9W7pI=; b=obL/rNUDeaelGKx26tM0QF+9C9qdn3FiNmV1QJcDq5fTGXNC2SnN0PcM6pOR9xG3qPiZ r/5YTcl+X5977KhukUIkRcbHFLHIRRH6Aw7dVISiNqxeE4B7P4TG1eR3zRc4yUJXKaTDx f6EY+xUnt/YI7R0XpmY3iS2bqcoeyNiBaT+JXBqxWeqWP+sHKwlFW/JIzwB61vwqoNb7Z 0U17Dk/dhxGDgaz51r1RTBouOKKFbLRVS/VRYpMr8jzPZNoeh2ENU3Yb4fISFPc9s2wc1 wuJP93W1LxkCwU1KlS7p8gQhJLMw4ews0vp88x+vf50zpklWQ0n2yaKJDUkbq0MlI7Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=HX23XttV; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 65FF1606A320 for ; Thu, 19 Nov 2026 15:04:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=HX23XttV Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C8B31F000C4; Thu, 19 Nov 2026 15:04:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100645; bh=K55Y508hR0FQqkR24yBkzs0g+HvdQyAYcsnooY9W7pI=; h=From:To:Cc:Subject:Date:Reply-To; b=HX23XttVycRsv0xOOgksYwD9UbOW3480EwAyzSsg30Z4T66L4vdhFiHeII3HQE6gH Z6rPJCmhk/l8mUmNVOu+VpQEUoZcBogpRvGi9zMo+jFVeSFFlRe1lqqSIyNNScEmkf qQN5IF9NTO/APMlnTepp0qGeCh7mcR6iK4dsXvKQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99503: ata: sata_fsl: Fix use-after-free of host_priv on probe() failure Date: Thu, 19 Nov 2026 15:26:41 +0100 Message-ID: <2026111916-CVE-2026-99503-0451@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3941; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sBwFnogEU2FBjsVEnAdKEBEECw7u45LyF6/yDS1zw+g=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2Sbs8pCf4Jz3TED4za/v0yRf1WhaqPo4TGoNUnY00 V1i+uJPRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkVwfDgnW5W48cDOo50Wn1 JdfwwdY7RzXsRBnmOy4MqVuhmDP/akOb6n5dgTc7/WbeAgA= 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: ata: sata_fsl: Fix use-after-free of host_priv on probe() failure sata_fsl_host_stop() releases hcr_base and host_priv: static void sata_fsl_host_stop(struct ata_host *host) { struct sata_fsl_host_priv *host_priv = host->private_data; iounmap(host_priv->hcr_base); kfree(host_priv); } ->host_stop() is called by the driver core through the ata_host_stop() devres action which ata_host_start() registers, so it is called both when the device is unbound and when probe() fails after the host has been started. The error_exit_with_cleanup label of sata_fsl_probe() releases hcr_base and host_priv as well, and it is reachable from the two device_create_file() calls which are done after the host has been activated. In that case sata_fsl_host_stop() runs on an already freed host_priv, resulting in a use-after-free and a double iounmap()/kfree(). Add a separate error label for the failures happening after the host has been activated, which only detaches the host and leaves hcr_base and host_priv to sata_fsl_host_stop(). Note that ata_host_detach() is dropped from error_exit_with_cleanup, as that label is now only reachable while host is still NULL. The Linux kernel CVE team has assigned CVE-2026-99503 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 6c8ad7e8cf29eb55836e7a0215f967746ab2b504 and fixed in 6.12.117 with commit 3e00737e95485b2a35bf5f515f56a4c416d5971f Issue introduced in 5.16 with commit 6c8ad7e8cf29eb55836e7a0215f967746ab2b504 and fixed in 6.18.61 with commit 59eac6863eede5957bfd8872633608431ac42d3c Issue introduced in 5.16 with commit 6c8ad7e8cf29eb55836e7a0215f967746ab2b504 and fixed in 7.3.2 with commit 9d9d62dfef3609f664c60f6fe61528a2e876a64b Issue introduced in 5.16 with commit 6c8ad7e8cf29eb55836e7a0215f967746ab2b504 and fixed in 7.4-rc1 with commit 70b1196740d61aabda13b2ad0e9c1dfa2ef9cfa3 Issue introduced in 4.4.294 with commit cdcd80292106df5cda325426e96495503e41f947 Issue introduced in 4.9.292 with commit 91ba94d3f7afca195b224f77a72044fbde1389ce Issue introduced in 4.14.257 with commit 325ea49fc43cbc03a5e1e37de8f0ca6357ced4b1 Issue introduced in 4.19.220 with commit 0769449b0a5eabc3545337217ae690e46673e73a Issue introduced in 5.4.164 with commit 77393806c76b6b44f1c44bd957788c8bd9152c45 Issue introduced in 5.10.84 with commit 4a46b2f5dce02539e88a300800812bd24a45e097 Issue introduced in 5.15.7 with commit adf098e2a8a1e1fc075d6a5ba2edd13cf7189082 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-2026-99503 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/ata/sata_fsl.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/3e00737e95485b2a35bf5f515f56a4c416d5971f https://git.kernel.org/stable/c/59eac6863eede5957bfd8872633608431ac42d3c https://git.kernel.org/stable/c/9d9d62dfef3609f664c60f6fe61528a2e876a64b https://git.kernel.org/stable/c/70b1196740d61aabda13b2ad0e9c1dfa2ef9cfa3