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 0E1A3390CB5 for ; Sat, 25 Jul 2026 09:01:57 +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=1784970118; cv=none; b=EgJeLOlJdS85ibsuAaBh5QdTjt+Z7VmPuYFS6sOadoVa6HrUOQMlo2Yxa/fml32ABezdxxQmr2uamVuAm7ts04UScAVD5L9N3OWk7MdQq4QTYFXbr61xtowXfH/6ppJIPXDI3JrSUie4NuqdSl/enkuZ0kAphNg3mVQSuAGsepg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784970118; c=relaxed/simple; bh=OgE31LFDwqT+bK20zioEDA/CVNDOOMpcCD00t8kqXsc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tBZSov7ibnU+WFyHPU165i3Qg7lVjTHycGnk7iIJ4MSefsoBk4jYv4Iq4ywOIVsDxdpYUG2g3bUp0cL51qsLS4t9f5FT5c3jkofOWRhdnxTNDXoYmCUc1137XTDtmiA3PaR03NUA+SaNW7WucJq4Xtggpx6+OEBifWvGuV2bSCE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CsGQsNtK; 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="CsGQsNtK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E5531F000E9; Sat, 25 Jul 2026 09:01:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784970116; bh=LrmUkuzwO8dpspqTu139N6a3e+SmghyLoO2TPsbnamo=; h=From:To:Cc:Subject:Date:Reply-To; b=CsGQsNtKYbGzHUasX5rCfKGW4FVuqO6NEp430QRCdwV8MH/eQ6nABtad8vmrSHS2I THShxdjVugx6DDchaf+zsuVdkSFE6eK7VOJSrGsDwLBH9mAcebwcTMK1WdV6K3w4YT qVsqLdAMYugM4QWCKiQuLhEw5j5VwDvHCmKNe9uQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64498: iio: buffer: hw-consumer: free scan_mask on buffer release Date: Sat, 25 Jul 2026 10:51:55 +0200 Message-ID: <2026072552-CVE-2026-64498-aa0a@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=2317; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9Bk6Rg7nzP4giujUQ3YiNAk3xCi4C2XoOryiOYYnaBo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkpFSXJ3Pv+vlvadnb9X6vV6Rocp57W9m430fcQ/eUVt jVo2ptLHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRtR4Mc6WyXgvPrjt+yqcy 8cy5bY8ebhYOXcGwoN/BYBu/wrU8qRfLFyo2/S3Y18s4EQA= 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: buffer: hw-consumer: free scan_mask on buffer release The scan_mask lifetime changed in commit 9a2e1233d38c ("iio: buffer: hw-consumer: remove redundant scan_mask flexible array"). Before that change, the scan mask storage was embedded in struct hw_consumer_buffer, so iio_hw_buf_release() could free the whole allocation with a single kfree(hw_buf). That commit moved the scan mask to a separate bitmap_zalloc() allocation stored in buffer.scan_mask, but left iio_hw_buf_release() unchanged. Free the scan mask in iio_hw_buf_release() before freeing the buffer wrapper. The Linux kernel CVE team has assigned CVE-2026-64498 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 9a2e1233d38c460ad07f36901931f3674a32d1ed and fixed in 7.1.4 with commit fb8e18f8ca724bd4de4643cad5b7c7230b9a5a71 Issue introduced in 7.1 with commit 9a2e1233d38c460ad07f36901931f3674a32d1ed and fixed in 7.2-rc1 with commit 6325d6e2204327965b849c0a16efb6ac9202e5a8 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-64498 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/buffer/industrialio-hw-consumer.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/fb8e18f8ca724bd4de4643cad5b7c7230b9a5a71 https://git.kernel.org/stable/c/6325d6e2204327965b849c0a16efb6ac9202e5a8