Thread index · Date index · Mailing lists
MidnightBSD 4.0.8 was released on September 28. Here is the list of \nchanges:\n\n20260925:\n mport 2.8.2 Bug fix release: package creation and\n schema upgrades now run in single transactions and roll back on\n failure, a failed delete is rolled back and the registry write lock\n is taken up front, shared-directory checks during delete use one\n database query, and @(owner,group,mode) plist fields are parsed\n positionally again.\n\n memory leaks, NULL\n dereferences, heap overflows and use-after-free fixes across libmport\n and the mport CLI, TOCTOU fixes in file copy and mkdir, package\n verification through open descriptors, MOVED/deprecation handling in\n mport update, replacement of packages installed under an older OS\n release, corrected exit codes for add, lock, unlock and download, and\n a forced install now re-registers the package and rolls back on\n failure.\n\n20260922:\n expat 2.8.5 (from 2.8.4). Fixes CVE-2026-93990: a high surrogate\n not followed by a low surrogate was accepted during UTF-16 decoding,\n letting malformed UTF-16 pass through the parser into the\n application, with impact depending on how the application handled\n it. Also fixes an out-of-memory related leak on a failed overflow\n check, and XML declaration versions other than 1.[0-9]+ are now\n rejected. Rebuild and install world, then restart all daemons that\n use the library, or reboot.\n\n Fixes CVE-2026-66046 and CVE-2026-76641\n (quadratic runtime in attribute \"isCdata\" lookups, letting moderately\n sized crafted XML cause a denial of service; default attribute\n lookups now use a hash table instead of a linear scan) and\n CVE-2026-76957 (custom encoding callbacks were not protected against\n parser re-entry). Note that a layer of compression around the XML\n can significantly reduce the minimum attack payload size.\n\n Upstream also fixes CVE-2026-76956, inverted getentropy() return\n handling. libbsdxml does not build random_getentropy.c and does not\n define HAVE_GETENTROPY, so that issue does not affect MidnightBSD.\n\n20260826:\n OpenSSL: fix CVE-2026-63072 and reduce the exposure to CVE-2026-54874\n in the 1.1.1 branch. cms_kek_cipher() sized its output buffer from\n the cipher's reported output length, but AES-WRAP-PAD unwrap writes\n and cleanses up to the input length on its integrity-failure paths,\n giving an 8 byte out-of-bounds heap write; the buffer is now sized for\n that worst case. The DTLS record layer also buffered up to 100\n next-epoch records per connection, which a peer could use to force\n disproportionate memory use; that queue is now capped at 16.\n\n20260826:\n posixshm: CVE-2026-58094 TOCTOU race in the FIOSSHMLPGCNF ioctl. The\n handler tested whether a largepage shared memory object already had a\n page size configured without holding the object's rangelock, so two\n callers could race and leave the object claiming a larger page size\n than the memory actually populated for it. The validation now runs\n under the rangelock.\n\n20260826:\n tty: CVE-2026-58093 use-after-free via the TIOCSCTTY ioctl. The\n handler drops the tty lock to take proctree_lock and did not\n revalidate the terminal after relocking, so a terminal being torn\n down concurrently could still be attached to the caller's session.\n TIOCSPGRP had the same gap. Both now re-enter through\n ttydev_enter() and fail with ENXIO if the device is gone. Rebuild\n and install the kernel.\n\n20260826:\n ppp: CVE-2026-58095, CVE-2026-58096 and CVE-2026-58097, three memory\n safety errors in the multilink endpoint discriminator code.\n mp_Enddisc() sized its hex output buffer as if each byte took one\n character rather than two, so a peer's endpoint option could overflow\n a static buffer; LcpDecodeConfig() did not enforce the three byte\n minimum option length from RFC 1717, so a short option caused an\n out-of-bounds write; and \"set enddisc psn\" copied its argument into a\n fixed size buffer with strcpy(). ppp(8) is installed setuid root.\n Rebuild and install world, then restart any running ppp(8) instances.\n\n20260826:\n sound: CVE-2026-58091 use-after-free via the SNDCTL_DSP_SYNCSTART\n ioctl. When dsp_oss_syncstart() could not acquire every channel lock\n in a sync group it slept with the sync group list lock dropped, then\n resumed walking the group's member list even though the group could\n have been freed in the meantime. It now restarts the lookup after\n sleeping. Systems with fewer than two sound devices are not affected.\n Rebuild and install the kernel, or reload sound.ko.\n\n20260826:\n hwpmc: CVE-2026-58089 hwpmc(4) failed to detach performance counters\n when a monitored process exec'ed a setuid or setgid binary. An\n inverted return value in pmc_can_attach() made the exec-time\n credential check allow exactly the cases it was meant to deny, so an\n unprivileged user could keep monitoring a process across a privilege\n transition. Rebuild and install the kernel, or reload hwpmc.ko.\n\n20260817:\n netipsec: validate PF_KEY socket address lengths before copying \nthem into\n fixed-size kernel structures. This prevents a kernel stack \noverflow and\n potential local privilege escalation through a PF_KEY socket. Rebuild\n and install the kernel.\n\n-- \nLucas Holt\nLuke@FoolishGames.com\n________________________________________________________\nMidnightBSD.org (Free OS)\nJustJournal.com (Free blogging)\n\n\nMidnightbsd-security\nmidnightbsd-security@midnightbsd.org\nTo unsubscribe: midnightbsd-security+unsubscribe@midnightbsd.org\nhttps://lists.midnightbsd.org/\n