Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 DBE4F374E64 for ; Sat, 15 Aug 2026 06:30:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775428; cv=none; b=eIvZQqU9bPDmCOuQpWvRWtJjj7YBt+pDNRvaH+7Ni68Ck98ZzmlN8X7hDcRisfxfbXo2KdL7+mrTDzgbvXhgxcXvt5iQ0Aa/KXzjbiGP7jJ2YUCfai6HI+kCuG7ziLPOYT41vti1/TinQE2fGVLlUrZcg+YHkhEIoLLcNxQDa98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775428; c=relaxed/simple; bh=fTWIPuCO05dX4f4q+DS81EpsfHL16tZktYg5YoYRD8A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TVk44AOHGH657RjJdoekkD6bqLPu0b7qzwjELP5ZsHCNqR1yLsZexhZ1R62+fAfEgyOiZH4jXvCVC3J8/s0dm2qghwiN9sRqyrvfsy/1/CvUunARPqnil+gcbkUC1dnm/U87GlWZcGHYZXZB17mJXRCw03nsydUEkI+yYSclwxA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UhihFfjK; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="UhihFfjK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DC8A1F000E9; Sat, 15 Aug 2026 06:30:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775426; bh=G/LYEnt7tCLL1jVGX+XqwRVF//42ipKxpksUlAreQkI=; h=From:To:Cc:Subject:Date:Reply-To; b=UhihFfjKjXov2Pp4SNREGbGNo7obFiAXr6WospjZRbCDzi+9TYicin4toEYAiT03M FGwfLPeHDT4nXCNeTj3MfzV9unSsy29iAIZtzU2qLl21XQGcjtcCdJg9JHFTkUcK1t f+/nsJDex8dnRU3T9DYCzUYrJuGsG2j6+iAB2KTI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72481: iio: magnetometer: ak8975: fix potential kernel stack memory leak Date: Sat, 15 Aug 2026 15:09:20 +0900 Message-ID: <2026081537-CVE-2026-72481-55c6@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3714; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mRYdyJuBeVtV55pTgkXFBuW6rIZdqpcK8aHoLPpJ7EQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDH/fnprkfWS/oupelwnyk0raXfXXTX1SpzptvkDRN 9tg2WtSHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRJB2GBde27EuOf/nIUb5/ 8wtbsbLe96Hs8xnm8GhfPOD1X3/Hdom45VM4L3Ak9f4oAwA= 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: iio: magnetometer: ak8975: fix potential kernel stack memory leak Currently in the AK8975 driver there are four instances where potential uninitialized kernel stack memory leaks can occur. If i2c_smbus_read_i2c_block_data_or_emulated() returns a value less than the size of the buffer, uninitialized bytes are retained in the buffer and later the buffer is passed on to IIO buffers, potentially leaking memory to userspace. Fix this by adding checks whether the return value of the function is equal to the size of the buffer and subsequently if the value is lesser than zero to distinguish from a returned error code. The Linux kernel CVE team has assigned CVE-2026-72481 to this issue. Affected and fixed versions =========================== Issue introduced in 4.7 with commit bc11ca4a0b84a2f2ebaca2614b92998738d13b1e and fixed in 5.10.261 with commit 12848f4ded022963944c063e09a192549a4dad1e Issue introduced in 4.7 with commit bc11ca4a0b84a2f2ebaca2614b92998738d13b1e and fixed in 5.15.212 with commit a9cf46054f81972f8c0f1dc2a79d2a141999dbce Issue introduced in 4.7 with commit bc11ca4a0b84a2f2ebaca2614b92998738d13b1e and fixed in 6.1.178 with commit 9f920550abacedc7fc3163dea65ac2a7d0b0765d Issue introduced in 4.7 with commit bc11ca4a0b84a2f2ebaca2614b92998738d13b1e and fixed in 6.6.145 with commit 8cf346074533356d67a6a6a43a192328ad341f11 Issue introduced in 4.7 with commit bc11ca4a0b84a2f2ebaca2614b92998738d13b1e and fixed in 6.12.97 with commit b974566803bceb72f0b9b5f1d7270b79ba963766 Issue introduced in 4.7 with commit bc11ca4a0b84a2f2ebaca2614b92998738d13b1e and fixed in 6.18.40 with commit 3d57672119525c59ed73ea21accb001ccbcd6cfd Issue introduced in 4.7 with commit bc11ca4a0b84a2f2ebaca2614b92998738d13b1e and fixed in 7.1.5 with commit fb27ebf81136e796c7b719303ef6fd7e1ae5d488 Issue introduced in 4.7 with commit bc11ca4a0b84a2f2ebaca2614b92998738d13b1e and fixed in 7.2-rc1 with commit a9a00d727b7bbc5e913a919530a9dd468935bf95 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-72481 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/magnetometer/ak8975.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/12848f4ded022963944c063e09a192549a4dad1e https://git.kernel.org/stable/c/a9cf46054f81972f8c0f1dc2a79d2a141999dbce https://git.kernel.org/stable/c/9f920550abacedc7fc3163dea65ac2a7d0b0765d https://git.kernel.org/stable/c/8cf346074533356d67a6a6a43a192328ad341f11 https://git.kernel.org/stable/c/b974566803bceb72f0b9b5f1d7270b79ba963766 https://git.kernel.org/stable/c/3d57672119525c59ed73ea21accb001ccbcd6cfd https://git.kernel.org/stable/c/fb27ebf81136e796c7b719303ef6fd7e1ae5d488 https://git.kernel.org/stable/c/a9a00d727b7bbc5e913a919530a9dd468935bf95