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 8E2CB1F941 for ; Sun, 19 Jan 2025 11:52:53 +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=1737287573; cv=none; b=Cqsvh91fm1DFJsE9IOq4/me2kD0e/Qc8Z6rNSKQgJ9y9Pv5ykkFeZiTRe6myWKZo9JLhIta9i/9Hm3WZcH3KELsfZAv87kBFbbFzGIhLXzFGrOKSN0E5ekdAbG+ZvErYUBuKE9qdHZwNwNeRHcNj1CzgtvpDLL4dU1oJMEfBSLQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737287573; c=relaxed/simple; bh=7yTMMhO38xoi1ZRzmgdI7J0ol6F1eJLZoP3anVS+co4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EchMXVixJ1VSVfyLkAz8XuBxS5hbGfiSDllmxaKNYe4Cc6nWBFkmyGY3kL/+pQACdIupx9zi9bccHv02G5sAhZNusvzsMRK3B0k0PQCp2hmI9pGvaChR2+tFFo/dQR8q0VGe89ML0UUJnGpMA6K7RHIBpe74gHU4YVBJZpbuhPE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ITT0cXjf; 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="ITT0cXjf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C87CC4CED6; Sun, 19 Jan 2025 11:52:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1737287573; bh=7yTMMhO38xoi1ZRzmgdI7J0ol6F1eJLZoP3anVS+co4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ITT0cXjfVJeImA8eFDlxCQaAH2kMKApZrNgZw01PxoBkpVzGFJ1UmYhcgQjTJJfrq I8ypOskT69EmSXD2m/aqkuoxGaxLdwOflC+GAB+LzWdFQCJMvh8LPiY25S+upjUyxR 1ZC0YM6w77FyBCVkvU8BMmfMN20hQlKe2GmuRKc8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-57904: iio: adc: at91: call input_free_device() on allocated iio_dev Date: Sun, 19 Jan 2025 12:52:35 +0100 Message-ID: <2025011934-CVE-2024-57904-dac5@gregkh> X-Mailer: git-send-email 2.48.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=2481; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7yTMMhO38xoi1ZRzmgdI7J0ol6F1eJLZoP3anVS+co4=; b=owGbwMvMwCRo6H6F97bub03G02pJDOk9z5uMbp1a9zvVRHrlHpdUM/npqvuXugg/3lF8+C3T9 luVNosPdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEfq1kmKe/dp1odoQqU2bo 71+5BX5KZQcvMDLMdzrXlPO2bspGlbMxi+bIc3g1H2ieBAA= 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: iio: adc: at91: call input_free_device() on allocated iio_dev Current implementation of at91_ts_register() calls input_free_deivce() on st->ts_input, however, the err label can be reached before the allocated iio_dev is stored to st->ts_input. Thus call input_free_device() on input instead of st->ts_input. The Linux kernel CVE team has assigned CVE-2024-57904 to this issue. Affected and fixed versions =========================== Issue introduced in 3.16 with commit 84882b060301c35ab7e2c1ef355b0bd06b764195 and fixed in 6.1.125 with commit 25ef52f1c15db67d890b80203a911b9a57b0bf71 Issue introduced in 3.16 with commit 84882b060301c35ab7e2c1ef355b0bd06b764195 and fixed in 6.6.72 with commit 09e067e3c83e0695d338e8a26916e3c2bc44be02 Issue introduced in 3.16 with commit 84882b060301c35ab7e2c1ef355b0bd06b764195 and fixed in 6.12.10 with commit d115b7f3ddc03b38bb7e8754601556fe9b4fc034 Issue introduced in 3.16 with commit 84882b060301c35ab7e2c1ef355b0bd06b764195 and fixed in 6.13-rc7 with commit de6a73bad1743e9e81ea5a24c178c67429ff510b 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-2024-57904 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/iio/adc/at91_adc.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/25ef52f1c15db67d890b80203a911b9a57b0bf71 https://git.kernel.org/stable/c/09e067e3c83e0695d338e8a26916e3c2bc44be02 https://git.kernel.org/stable/c/d115b7f3ddc03b38bb7e8754601556fe9b4fc034 https://git.kernel.org/stable/c/de6a73bad1743e9e81ea5a24c178c67429ff510b