#1153446 minidlna: CVE-2026-29508: unbounded stack allocation from DFF PROP chunk size

Package:
src:minidlna
Source:
src:minidlna
Submitter:
Sumit Verma
Date:
2026-11-08 21:27:04 UTC
Severity:
normal
Tags:
#1153446#5
Date:
2026-11-08 16:19:54 UTC
From:
To:
Hi,

CVE-2026-29508 is listed as undetermined and has no Debian bug. It does
affect Debian, and I found no upstream fix: the upstream repository's
latest commit is from 2023, and tagutils/tagutils-dff.c last changed in
2020. A patch is attached.

_get_dfffileinfo() in tagutils/tagutils-dff.c takes the 64-bit PROP chunk
size from the file and declares a stack array of that size, with no bound:

propckDataSize = GET_DFF_INT64(ckbuf + 4);
unsigned char propckData[propckDataSize];

The sub-chunk parsing that follows also reads and advances using sizes from
the file without checking them against the chunk. The file is identical in
1.3.3+dfsg-1.1 and 1.3.0+dfsg-2.2+deb12u1. Per the CVE description, a
crafted .dff file in a scanned directory is enough to reach it.

The patch rejects PROP sizes outside 4..4096 bytes, since the PROP chunks
in the files I generated are well under that. It also checks that each
sub-chunk read stays inside the chunk.

What I checked: the patch applies to both versions. I compiled the parser
on its own before and after the patch under ASan/UBSan, against each
version's tagutils.h, with small stand-ins for logging. Four valid DFF
files that I generated (1, 2 and 6 channels, with and without the optional
ABSS and LSCO chunks) gave identical sample rate, channels, bitrate and
length before and after, with no sanitizer reports.

What I did not test: I did not reproduce the overflow or run oversized or
malformed files through the patched code. I also did not do a full package
build, or test real-world DFF files, which is the main risk of the
4096-byte limit. Please adjust it if you know of files with larger PROP
chunks.

Separately, and not addressed by this patch: the DST branch divides by a
frame rate taken from the file, without a zero check.

Regards,
Sumit Verma

#1153446#10
Date:
2026-11-08 21:25:47 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
minidlna, 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 1153446@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexander GQ Gerasiov <gq@debian.org> (supplier of updated minidlna 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: Sun, 08 Nov 2026 22:17:04 +0200
Source: minidlna
Architecture: source
Version: 1.3.3+dfsg-2
Distribution: unstable
Urgency: high
Maintainer: Alexander GQ Gerasiov <gq@debian.org>
Changed-By: Alexander GQ Gerasiov <gq@debian.org>
Closes: 989828 1081948 1138586 1144655 1153446
Changes:
 minidlna (1.3.3+dfsg-2) unstable; urgency=high
 .
   [ Barak A. Pearlmutter ]
   * Update standards version to 4.7.0, no changes needed.
   * patch for deletion race condition (closes: #1081948) many thanks
     to Simon Tatham <anakin@pobox.com>
 .
   [ Luca Boccassi ]
   * Install and use sysusers.d/tmpfiles.d config files
 .
   [ Alexander Gerasiov ]
   * d/patches: Fix DFF parser memory safety issues (CVE-2026-29508).
     Thanks to Sumit Verma (Closes: #1153446)
   * d/patches: Do not abort on UPnP unsubscribe during notify connect.
     (Closes: #1144655)
   * d/patches: Fix select_del() crash in forked HTTP children.
     (Closes: #989828, #1138586)
   * d/patches: Fix FTBFS on GNU/Hurd.
   * debian/minidlna.init: Create cache directory if missing.
   * debian/copyright: Do not list COPYING license file.
   * debian/copyright: Move DFSG repack explanation to Comment field.
   * d/patches: Fix DSF parser division by zero and huge allocation.
   * debian/minidlna.service: Fix man page section, restart on failure.
   * debian/control: Add pkgconf to Build-Depends.
   * Bump Standards-Version to 4.7.2, no changes needed.
   * debian/copyright: Update packaging copyright years.
   * Remove debian/minidlna.postinst.
   * debian/rules: Take OS version from dpkg-vendor.
   * debian/minidlna.init: Use the pidfile for status.
   * debian/minidlna.conf.5: Fix wording, typos and wrong defaults.
Checksums-Sha1:
 34266c09ca5b3152d3e3fad16aa2ce883035ca8e 2354 minidlna_1.3.3+dfsg-2.dsc
 e90538bd33b23792b5af1ae0c8e6626c6002194a 36564 minidlna_1.3.3+dfsg-2.debian.tar.xz
 601da25e47e8524cd48f4971c8bc29da2752da56 691944 minidlna_1.3.3+dfsg-2.git.tar.xz
 6f263859499e3cdaa0769f305a970aea407cdc3d 17761 minidlna_1.3.3+dfsg-2_source.buildinfo
Checksums-Sha256:
 e06ab497c31d06f495b3e21ec3afdfb1374dbc76b903abcea2473bf60bae59b4 2354 minidlna_1.3.3+dfsg-2.dsc
 48608ce97810e77bf2baeaebb696a412b5439493812f45c616f1eb486a44f398 36564 minidlna_1.3.3+dfsg-2.debian.tar.xz
 30a3fa9d6ea32bf325122096c48c8f1534e16eef27b49fa1dc02bb2c8f75f8fe 691944 minidlna_1.3.3+dfsg-2.git.tar.xz
 629de6c0594b6e90e89095cfa9859c04afb636eafa4c465154610c7c1bbbefab 17761 minidlna_1.3.3+dfsg-2_source.buildinfo
Files:
 657b8ffed2d51590b46b737f87d041b6 2354 net optional minidlna_1.3.3+dfsg-2.dsc
 ebeb40b9c77386ec449a5d691c30d0ea 36564 net optional minidlna_1.3.3+dfsg-2.debian.tar.xz
 eb68a1a026e82c8d73f2498600bda035 691944 net optional minidlna_1.3.3+dfsg-2.git.tar.xz
 3a1101b65d67e090c5b0b7a3bc7b9c3e 17761 net optional minidlna_1.3.3+dfsg-2_source.buildinfo
Git-Tag-Info: tag=742839717c893f4e36f7c286cb25f89c006a41af fp=04b59d90df7cc2abcd49baeaca87e9e82aac33f1
Git-Tag-Tagger: Alexander Gerasiov <a@gerasiov.net>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmrw3swACgkQYG0ITkaD
wHmbCxAAiALzsF8pj3zG0ZZF7Rxb6w7J8eVKdB3sYG4msEEFNSQIIkqEe3Q/DDil
k7pYGGW6n3stkPIiaKc+70Kv4MCxAiG1IUr+VgxniCsH5GSggAp26HUEbfQRCUm8
8r04BCm5a+Nn0XpoQPLI+Cb8cqGFfevhf76FbWkISLi1zLbYm0ugC6mACX8d7CsT
P/tna1fEAbr7hyw2AC4d9Ow4aa8n6HYVEr5xhriillaw3MGuvgXAjMqo6lZFxHY0
79EW9kRR8zNLyGMBrlWDgJCkwPtfJpPdxVaDHzp+t5qSoXzvxiitXuV3D1tSvGSa
dO494mnl8NwRngCPPgNJVE9TgeWe6sQUdiMK4O+yiypDEOjdA0ceGgOaTYHWBBDE
YE7BYsmuyRkOsp38jkRrYAjySTrgwpCifrd+2Hkw1uBgcwalR5Z0BjnTMTt5ndGk
eNeLpeYCKoe9NZHSXEK8D8O+w1XUSqLPXb0GVKwr6Cb5EteQTcSdRyWxQ1lYKJZS
KcOpJlafRFeUB9KC7OdXTaagMKDzKZ1pW4mOzoIdrXf+MPdQL7yqmptb09uO95gf
TKE99ZeVuqmnDZMSj9xb9OaBkHFQg3ukskh5eSEgGP7NoxfbOgtjgHHnMr13o0HF
CeLqQHKPHLOOPeFuqyKdLwT02ClXG8pm1dELSYWhShjN9igVErQ=
=w4MV
-----END PGP SIGNATURE-----