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 0D81C4921AC for ; Fri, 25 Sep 2026 10:28:31 +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=1790332112; cv=none; b=Yody6akSZ3M6GCxdkeilN8W8A+YQnzDb4t7kOF7R+HoNnEjoHX9QtVkVsclUiipr6sZyH1VgX7EVaOXBJ70qMG9mh4SZDRacfd8joV6ntEP6He/l2689H3x9tNpgCCIwz2Lb6a7yUUk2pl+Cl+lk38JsyWa7/PUXwjgt0I6/1jM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332112; c=relaxed/simple; bh=ax6LEeWVDKRtLeHXQ1groVSfWP5Qf+8Pb8r6CUCSWx8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ISBdNWDZbMAyz/E7tYAEMwCiadc9Pr6hjKuaW6YkvXd1d4Tyo0RpyY+zZp9NwmllHXNmPxt6v5sLdP6y7ob++YuwCNyLr/d19VtHyRys9R750yfkDQzh88wOWl8Zdi2a07LmpwNoFrrG3uwiDpPtburzaOyTqGSDVTJfvLM0Glo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LJLbv8ak; 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="LJLbv8ak" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A1161F000FF; Fri, 25 Sep 2026 10:28:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332110; bh=v5s0/W+4d5NnsGVL/fYUeCSUl/ivdZUZuRrdFItk4KY=; h=From:To:Cc:Subject:Date:Reply-To; b=LJLbv8akXDotbdJ5ola5hFrBlMCoOWC6X7Fef3AnZwhemM19BcqwY++emtdDbxpdE ysMAI4hoYy3unu7CfSFGi4sbzSIPJ01k6J7XM3TiyRXkytHIFQ4FfbqkSy3T7TyfD7 JBzudPbOShnrALubTv89O3yYgPx0hOkRy+ufJiE8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97923: tracing: Free histogram the var ref when its initialization fails Date: Fri, 25 Sep 2026 12:23:46 +0200 Message-ID: <2026092508-CVE-2026-97923-7ca0@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=3297; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tpKwd9iS4lptQHZ8Tc6XoXNiJ7AnysrddjhrswS8BHM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvAP0hc8XnihLqDy8ftm3e3OuMauX5h/g/ZHAq3NlU svvhiuuHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRozMYFjTKZnhf9tm89PyD Ah7W5Vl9T6PdoxgWLH5iHvVETuwU34Slsxb7b5ScE6V4GgA= 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: tracing: Free histogram the var ref when its initialization fails create_var_ref() allocates a VAR_REF hist_field and then calls init_var_ref() to fill it in. When that fails the field is leaked. commit 656fe2ba85e8 ("tracing: Use hist trigger's var_ref array to destroy var_refs") made destroy_hist_field() return early for HIST_FIELD_FL_VAR_REF, since var refs are freed by walking the trigger's var_refs[] array instead. create_var_ref() adds the field to that array only after init_var_ref() has succeeded, so on this path the field is in neither place and nothing frees it. The call was correct when it was written, before var refs were taken out of destroy_hist_field(). init_var_ref() cannot free it either. The caller owns the field, so init_var_ref() undoes only its own string allocations and leaves the field alone. Freeing it there would leave create_var_ref() passing freed memory to destroy_hist_field(), which reads its flags. Call __destroy_hist_field(), which frees the field without consulting the flag. The Linux kernel CVE team has assigned CVE-2026-97923 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit 656fe2ba85e81d00e4447bf77b8da2be3c47acb2 and fixed in 6.12.111 with commit 74375caa20fe5165807b4334c783d1790b01f02a Issue introduced in 5.0 with commit 656fe2ba85e81d00e4447bf77b8da2be3c47acb2 and fixed in 6.18.53 with commit 222abcbe7866fef04563b6eb89fb21f627dcbc77 Issue introduced in 5.0 with commit 656fe2ba85e81d00e4447bf77b8da2be3c47acb2 and fixed in 7.2.7 with commit a69baeac38677270656e85753d93856a076dee57 Issue introduced in 5.0 with commit 656fe2ba85e81d00e4447bf77b8da2be3c47acb2 and fixed in 7.3-rc3 with commit 516001d53e6b2ea95a251ee2ef54a1a689a3fd58 Issue introduced in 4.19.100 with commit 836717841a30d7845cdf9cb806ee0ff3bfa7135a 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-97923 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: kernel/trace/trace_events_hist.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/74375caa20fe5165807b4334c783d1790b01f02a https://git.kernel.org/stable/c/222abcbe7866fef04563b6eb89fb21f627dcbc77 https://git.kernel.org/stable/c/a69baeac38677270656e85753d93856a076dee57 https://git.kernel.org/stable/c/516001d53e6b2ea95a251ee2ef54a1a689a3fd58