diff mbox series

[scarthgap] apt: upgrade 2.6.1 -> 2.6.2

Message ID 20261126052452.2573514-1-braychur@cisco.com
State New
Headers show
Series [scarthgap] apt: upgrade 2.6.1 -> 2.6.2 | expand

Commit Message

Bansi Raychura Nov. 26, 2026, 5:24 a.m. UTC
Upgrade to the upstream 2.6.2 security release to fix
CVE-2026-109518 [2]. The fix opens HTTP, rred and compressed store
output files exclusively so existing hardlinks cannot bypass download
verification. Resumed HTTP downloads preserve their partial data in a
new destination inode [1].

This release also includes out-of-bounds access hardening, a download
memory exhaustion fix and a test suite reliability improvement.
Fetch the release from the Debian security archive, where 2.6.2 is
published, and update its SHA256 checksum. Existing recipe patches
remain applicable without modification.

[1] https://salsa.debian.org/apt-team/apt/-/commit/81cacd2aeb7380a751e786ff3a83eef8e2d05adb
[2] https://security-tracker.debian.org/tracker/CVE-2026-109518

Signed-off-by: Bansi Raychura <braychur@cisco.com>
---
 meta/recipes-devtools/apt/{apt_2.6.1.bb => apt_2.6.2.bb} | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
 rename meta/recipes-devtools/apt/{apt_2.6.1.bb => apt_2.6.2.bb} (93%)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/apt/apt_2.6.1.bb b/meta/recipes-devtools/apt/apt_2.6.2.bb
similarity index 93%
rename from meta/recipes-devtools/apt/apt_2.6.1.bb
rename to meta/recipes-devtools/apt/apt_2.6.2.bb
index 8b48de3498..eb0d648748 100644
--- a/meta/recipes-devtools/apt/apt_2.6.1.bb
+++ b/meta/recipes-devtools/apt/apt_2.6.2.bb
@@ -5,7 +5,7 @@  LICENSE = "GPL-2.0-or-later"
 SECTION = "base"
 
 # Triehash script taken from https://github.com/julian-klode/triehash
-SRC_URI = "${DEBIAN_MIRROR}/main/a/apt/${BPN}_${PV}.tar.xz \
+SRC_URI = "https://security.debian.org/debian-security/pool/updates/main/a/apt/${BPN}_${PV}.tar.xz \
            file://triehash \
            file://0001-Disable-documentation-directory-altogether.patch \
            file://0001-Fix-musl-build.patch \
@@ -27,11 +27,11 @@  SRC_URI:append:class-nativesdk = " \
            file://0001-Revert-always-run-dpkg-configure-a-at-the-end-of-our.patch \
            "
 
-SRC_URI[sha256sum] = "86b888c901fa2e78f1bf52a2aaa2f400ff82a472b94ff0ac6631939ee68fa6fd"
+SRC_URI[sha256sum] = "12c38c9b2b8159bc1780eb17acff0adf6d6b2dff3d560f557b9ad9f60b3cc63f"
 LIC_FILES_CHKSUM = "file://COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
-# the package is taken from snapshots.debian.org; that source is static and goes stale
-# so we check the latest upstream from a directory that does get updated
+# Fetch this release from the Debian security archive.
+# Use the regular Debian mirror to check for newer versions.
 UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/a/apt/"
 # apt seems to follow a peculiar version policy, where every *other* even version
 # is considered stable, e.g. 1.0, 1.4, 1.8, 2.2, 2.6, etc. As there is no way