#1150649 luksmeta: CVE-2026-107565

Package:
src:luksmeta
Source:
src:luksmeta
Submitter:
Salvatore Bonaccorso
Date:
2026-11-24 08:37:02 UTC
Severity:
normal
Tags:
#1150649#5
Date:
2026-10-11 18:03:44 UTC
From:
To:
Hi Christoph,

The following vulnerability was published for luksmeta.

CVE-2026-107565[0]:
| A flaw was found in luksmeta. A local attacker with administrative
| privileges can cause data corruption when saving metadata to a Linux
| Unified Key Setup (LUKS) device. Due to incorrect boundary
| calculations and flawed overlap detection, new metadata entries can
| be written beyond available free space or over existing records.
| This issue can corrupt stored encrypted payload data or existing
| metadata, potentially rendering the affected data inaccessible.

At time there was only the Red Hat bugzilla, I filled a upstream issue
to ask more in [2].


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-107565
https://www.cve.org/CVERecord?id=CVE-2026-107565
[1] https://bugzilla.redhat.com/show_bug.cgi?id=2547930
[2] https://github.com/latchset/luksmeta/issues/18

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore

#1150649#12
Date:
2026-11-03 13:44:55 UTC
From:
To:
Hi,

The luksmeta 10-2 changelog says:

* Cherry-pick "fix gap allocator bounds checking".
Closes: #1151196 [CVE-2026-111555]

But according to the security tracker and upstream, that commit fixes
the other luksmeta CVE:

CVE-2026-107565 (#1150649): Fixed by
https://www.google.com/url?q=https://github.com/latchset/luksmeta/commit/ba140c8f628237ed12e47e9829fec9c62fc5f89a&source=gmail&ust=1793799895372000&sa=E
"libluksmeta: fix gap allocator bounds checking" (upstream PR #19)
-> this is
debian/patches/1791451386.v10-1-gba140c8.libluksmeta-fix-gap-allocator-bounds-checking.patch

CVE-2026-111555 (#1151196): Fixed by
https://www.google.com/url?q=https://github.com/latchset/luksmeta/commit/62b6491e8318b17ad8472a724ccab8324ec00aae&source=gmail&ust=1793799895372000&sa=E
"libluksmeta: reject occupied slot ranges that extend past the gap"
(upstream PR #21, in tag v11)

I checked the 10-2 source on
https://www.google.com/url?q=http://sources.debian.org&source=gmail&ust=1793799895372000&sa=E
:
- All added lines of ba140c8 are present in libluksmeta.c and
test-lm-gap.c, and the removed lines are gone. So CVE-2026-107565
is fixed in 10-2.
- 62b6491e is not there. read_header() in 10-2 checks
"s->offset > sizeof(lm_t)" and "s->length <= maxlen" separately,
but not the new
r = (uint64_t) s->offset + s->length <= *length ? 0 : -EINVAL;
So a checksum-valid header with an occupied slot extending past the
gap is still accepted, which is CVE-2026-111555.
- The libluksmeta.c hunk of 62b6491e applies cleanly to 10-2
(patch --dry-run). The rest of the commit adds a test case to
test-lm-gap.c and links it against
https://www.google.com/url?q=http://libcrc32c.la&source=gmail&ust=1793799895373000&sa=E
in Makefile.am.

So I think #1151196 should be reopened (or found in 10-2), and #1150649
can be closed with 10-2. Alternatively, upstream v11 contains both
fixes.

Static source check only; nothing was built or run.

Regards

#1150649#23
Date:
2026-11-24 08:36:02 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
luksmeta, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1150649@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christoph Biedl <debian.axhn@manchmal.in-ulm.de> (supplier of updated luksmeta package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 23 Nov 2026 21:06:22 +0100
Source: luksmeta
Architecture: source
Version: 11-1
Distribution: unstable
Urgency: medium
Maintainer: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
Changed-By: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
Closes: 1150649 1151196
Changes:
 luksmeta (11-1) unstable; urgency=medium
 .
   * New upstream version 11
     Closes: #1150649 [CVE-2026-107565].
     Closes: #1151196 [CVE-2026-111555].
Checksums-Sha1:
 6505a8386b81b4e3b30ff48aefe87b2dca76327c 2063 luksmeta_11-1.dsc
 db61829edbf9092144f35d5a21cbce372afe63ac 31435 luksmeta_11.orig.tar.gz
 6776163b372d949cacdd87f9ff6b6a8cf6e023b6 3584 luksmeta_11-1.debian.tar.xz
 f6954dabbffadb71b8d5df70928860d14df254e0 7949 luksmeta_11-1_powerpc.buildinfo
Checksums-Sha256:
 6a8c717f31d9cd7d02357f09065876cd01598256d9400d67f2591e73eb7ee805 2063 luksmeta_11-1.dsc
 663c916367a5e31a835afa59c30cf52c9f4b9e3103f98e6079fac0387bd4ca43 31435 luksmeta_11.orig.tar.gz
 ecaa210cc9160943923b32733ab5493f567197651bdf200124f7fd6f720d8aca 3584 luksmeta_11-1.debian.tar.xz
 4ba66c33f524a0c455c9862c1de98dd18ac890481ecd647d3aea738ef77ef5dc 7949 luksmeta_11-1_powerpc.buildinfo
Files:
 54a38f291f7c9c2db151c76aa18384fd 2063 net optional luksmeta_11-1.dsc
 b5d8529c891ef59f28fcffb1dc5585cd 31435 net optional luksmeta_11.orig.tar.gz
 e00bf182e8a6c133948e84bdbbedd869 3584 net optional luksmeta_11-1.debian.tar.xz
 1ef13132139b86b54e0cf0f36c582e47 7949 net optional luksmeta_11-1_powerpc.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEWXMI+726A12MfJXdxCxY61kUkv0FAmsFSKkACgkQxCxY61kU
kv0IQw/9E0K6VR6vGRc2yUASRZZLoG/HSOpFpykeVMdol2um1kitImI0K7TbAhTN
U1WKzkfZnY/LqT+kxDbo50hoOEw7vBnxzYiyGP6kEcqO/WmAsGFy+qDhMBx9Q/t2
GLSkVy/u8PPXprvKqjh+/MUsK70rMqHYE9gIvErAk4Q57GRae7bKu0Y8xA0p8kDL
rrYfMs0HShxfx6f8h009p2vkgrYLdNYp9fVatN8UUFDWng14LvwrPBx+L+BmjE3T
uG5bmlVyO/x+I3DMtJNAaOWspZTwSXcMUFRLoSbGhAjf8T6C9Zc6frpFd1cJU/MT
C9FENX4WzjsNzEeq39FIpKrH8eFjwlQFVc6cxyRUtov60KuK39qNqkGI88iNk2bZ
WtABzRyeg8nfMjIuJ+UfJIfmFyFq1ZN2c7SPFIHrmuEvw6aOAZaO8qHKFkQIldVD
y9xwIR5D2xSKTmjP2dQJjvecZlfVPtJI5QbCfoxJSkeiD+vNy3WR2fdg3KSthTIJ
PVceWmGYVhhR6YMR0lFB5pgG/XuXpTHvgEMG9XLPHB3tcIwiM8e8js+VaO8q5g4G
Ca1lGiw6Tm0cm/zy+jv/fK6WNfGjb8M5tEMVgchcpoLxSIrInW5AlLSC6KWlzTgd
cVEZjJpsGWM/pYFjKnMOa+8aOpSSCw0g/Zp9Za2OqJ+7Af+4B0c=
=3HlD
-----END PGP SIGNATURE-----