OpenBSD/src Dn4sRXkusr.sbin/rpki-client rfc3779.c extern.h

   rpki-client: do not provide IPAddrBlocks_{new,free}() unconditionally

   After sitting on the issue for over four years, a last-minute addition to
   OpenSSL 4.1 provided a somewhat incorrect version of IPAddrBlocks_new(),
   and versions of IPAddrBlocks_free() ith i2d and d2i and the ASN.1 item.
   Until LibreSSL provides the corresponding functions, we need this compat
   code in base. After that the rfc3779.c file can move to portable where it
   really belongs.

   With this the rpki-client code is ready for OpenSSL 4.1, provided it uses
   a fixed version of lib(re)tls.

   ok claudio
VersionDeltaFile
1.295+5-5usr.sbin/rpki-client/extern.h
1.3+5-1usr.sbin/rpki-client/rfc3779.c
+10-62 files

OpenBSD/src NmIEjfmusr.sbin/rpki-client validate.c

   rpki-client: fix valid_uri() to work with non-strings

   valid_uri() takes a length parameter and should honor that. Most uris
   passed are NUL terminated, but the ones coming from an ASN1_STRING are
   not guaranteed to be. Calling strstr() on a non-terminated string with
   no match is a buffer overread. So use memmem() instead.

   This is needed for rpki-client to work with OpenSSL 4.1, who, in their
   infinite disregard for downstreams chose to stop NUL-terminating ASN.1
   strings. A massive breaking change in a minor release that will surely
   cause lots of buffer overreads. It's also not mentioned in CHANGES.md,
   only in their terrible migration guide. Of course it's been documented
   since forever, but who reads OpenSSL's crappy documentation anyway?

   ok claudio
VersionDeltaFile
1.86+2-2usr.sbin/rpki-client/validate.c
+2-21 files

OpenBSD/src oey29I7distrib/sets/lists/comp mi

   sync
VersionDeltaFile
1.1769+1-0distrib/sets/lists/comp/mi
+1-01 files

OpenBSD/src haH4S9Jregress/libexec/ld.so/subst/prog1 Makefile

   Add a test, disabled for now, that tests $ORIGIN works when a program
   is executed by a search of the PATH. Additional tests are needed for
   other cases. okay deraadt@
VersionDeltaFile
1.4+20-6regress/libexec/ld.so/subst/prog1/Makefile
+20-61 files

OpenBSD/src PEry8mXregress/sys/kern/signal/siginfo-fault siginfo-fault.c

   Fix test expectations on luna88k.
VersionDeltaFile
1.3+5-2regress/sys/kern/signal/siginfo-fault/siginfo-fault.c
+5-21 files

OpenBSD/src DGkB9Sclibexec/ld.so/sparc64 ldasm.S

   fix comment.  the minimum for dl_data[] is 10*wordsize, the 10 being
   1+AUX_entry
VersionDeltaFile
1.48+2-2libexec/ld.so/sparc64/ldasm.S
+2-21 files

OpenBSD/src opQ98plshare/man/man4/man4.octeon ogx.4, sys/arch/octeon/dev ogxreg.h if_ogx.c

   Enable jumbo frames in ogx(4)

   ogx(4) already handles buffer chaining. Raise the MTU limit to enable
   the use of jumbo frames.

   Use the same maximum MTU as cnmac(4). The limit 12288 (0x3000) is
   somewhat arbitrary. It could be even higher, but it is already
   higher than what many other network devices are capable of.
VersionDeltaFile
1.9+11-1sys/arch/octeon/dev/if_ogx.c
1.3+3-2share/man/man4/man4.octeon/ogx.4
1.4+4-1sys/arch/octeon/dev/ogxreg.h
+18-43 files

OpenBSD/src PwSsLAwusr.sbin/smtpd smtpd.h mda_variables.c

   when expanding variables with the raw modifier, apply a filtering in
   both environment and mda to restrict the characters that are allowed
   to pass through.

   spotted by squishification at gmail.com
   from gilles@

   this is errata/7.9/015_smtpd.patch.sig
VersionDeltaFile
1.9.8.1+34-7usr.sbin/smtpd/mda_unpriv.c
1.11.2.1+8-4usr.sbin/smtpd/mda_variables.c
1.694.2.1+8-3usr.sbin/smtpd/smtpd.h
+50-143 files

OpenBSD/src HBbKTLdusr.sbin/smtpd smtpd.h mda_variables.c

   when expanding variables with the raw modifier, apply a filtering in
   both environment and mda to restrict the characters that are allowed
   to pass through.

   spotted by squishification at gmail.com
   from gilles@

   this is errata/7.8/051_smtpd.patch.sig
VersionDeltaFile
1.9.4.1+34-7usr.sbin/smtpd/mda_unpriv.c
1.10.4.1+8-4usr.sbin/smtpd/mda_variables.c
1.689.4.1+8-3usr.sbin/smtpd/smtpd.h
+50-143 files

OpenBSD/src Em4VGvjusr.sbin/smtpd smtpd.h mda_variables.c

   when expanding variables with the raw modifier, apply a filtering in
   both environment and mda to restrict the characters that are allowed
   to pass through.

   spotted by squishification at gmail.com
VersionDeltaFile
1.10+34-7usr.sbin/smtpd/mda_unpriv.c
1.12+8-4usr.sbin/smtpd/mda_variables.c
1.697+8-3usr.sbin/smtpd/smtpd.h
+50-143 files

OpenBSD/src HpOXDp3lib/libc/gen Makefile.inc execv.3

   As suggested by deraadt@, split execvp(3) out of execv(3),
   since the two groups of functions are sufficiently different and
   the semantics and error handling of the *p* functions is sufficiently
   complicated to make the combined manual page confusing.
   In particular, the early sentence about "the initial argument"
   was outright wrong and hard to fix without causing other problems.

   This commit only does the minimum required for the split,
   with no text changes yet, but it will allow subsequent improvements
   in both pages.
VersionDeltaFile
1.1+219-0lib/libc/gen/execvp.3
1.4+14-120lib/libc/gen/execv.3
1.85+3-2lib/libc/gen/Makefile.inc
+236-1223 files

OpenBSD/src mPZLKOqusr.bin/tmux tmux.h options-table.c

   Add rounded borders option for panes like popups.
VersionDeltaFile
1.1170+4-2usr.bin/tmux/tmux.1
1.4+5-1usr.bin/tmux/window-border.c
1.1440+3-2usr.bin/tmux/tmux.h
1.246+3-2usr.bin/tmux/options-table.c
+15-74 files

OpenBSD/src NuD1iDhusr.bin/tmux layout.c

   Rather than allowing floating panes to remain outside the window and
   invisible after resize, move them and resize them so they are fully
   inside the window. GitHub issue 5582 from Noam Stolero.
VersionDeltaFile
1.100+49-2usr.bin/tmux/layout.c
+49-21 files

OpenBSD/src oxrbnxfusr.sbin/rpki-client cms.c

   rpki-client: change return 0 to goto out

   This turns cms_parse_validate() into a single exit function and fixes
   a return 0 that should have been return NULL since the last commit.
VersionDeltaFile
1.69+2-2usr.sbin/rpki-client/cms.c
+2-21 files

OpenBSD/src NJjQBEisys/dev/pci/drm drm_prime.c, sys/dev/pci/drm/include/linux scatterlist.h

   unstub drm_prime_get_contiguous_size()

   called by xe, not currently used
VersionDeltaFile
1.12+4-1sys/dev/pci/drm/include/linux/scatterlist.h
1.14+0-4sys/dev/pci/drm/drm_prime.c
+4-52 files

OpenBSD/src V4lFtvgsys/dev/pci/drm drm_drv.c drm_linux.c, sys/dev/pci/drm/include/drm drm_device.h

   correct dma_tag_lookup() loop

   drm_cd.cd_ndevs[] has pointers to drm_softc not drm_device

   Currently, dma_tag_lookup() is only used by the apldcp/apldrm drivers.
   At the start of the softc for both of those is struct platform_device.
   If the loop doesn't match the the function argument is cast to
   struct platform_device *, so the problem was not noticed.

   discussed with kettenis@ and apldcp/apldrm tested on m1 mac mini
VersionDeltaFile
1.146+5-5sys/dev/pci/drm/drm_linux.c
1.207+0-6sys/dev/pci/drm/drm_drv.c
1.13+6-0sys/dev/pci/drm/include/drm/drm_device.h
+11-113 files

OpenBSD/src OapiK6wsys/nfs nfs_subs.c

   only allow an NFS server to set file type on a new vnode

   Otherwise, a malicous server could aid a local user in avoiding access
   controls.

   This reverts nfs_subs.c rev 1.3.  Which was part of a commit to fix the
   use of automount with direct maps.

   reported by Andrew Griffiths
   from jsg@

   this is errata/7.9/016_nfs.patch.sig
VersionDeltaFile
1.151.10.2+2-2sys/nfs/nfs_subs.c
+2-21 files

OpenBSD/src T49Kj4ksys/nfs nfs_subs.c

   only allow an NFS server to set file type on a new vnode

   Otherwise, a malicous server could aid a local user in avoiding access
   controls.

   This reverts nfs_subs.c rev 1.3.  Which was part of a commit to fix the
   use of automount with direct maps.

   reported by Andrew Griffiths
   from jsg@

   this is errata/7.8/052_nfs.patch.sig
VersionDeltaFile
1.151.4.2+2-2sys/nfs/nfs_subs.c
+2-21 files

OpenBSD/src 9ybGWAZsys/dev/wscons wsemul_vt100var.h wsemul_sun.c

   Clamp numeric arguments of terminal escape sequences to an arbitrary value of
   100,000. The existing logic would happily process as many digits as provided,
   which could make the values wraparound at 2**32, or be considered as negative
   values if cast to a signed type, leading to incorrect processing.

   Bug report by Acts1631.
   from miod@

   this is errata/7.9/017_wscons.patch.sig
VersionDeltaFile
1.48.6.1+28-6sys/dev/wscons/wsemul_vt100.c
1.37.12.1+17-4sys/dev/wscons/wsemul_sun.c
1.14.6.1+4-2sys/dev/wscons/wsemul_vt100var.h
+49-123 files

OpenBSD/src pw88066sys/dev/wscons wsemul_vt100var.h wsemul_sun.c

   Clamp numeric arguments of terminal escape sequences to an arbitrary value of
   100,000. The existing logic would happily process as many digits as provided,
   which could make the values wraparound at 2**32, or be considered as negative
   values if cast to a signed type, leading to incorrect processing.

   Bug report by Acts1631.
   from miod@

   this is errata/7.8/053_wscons.patch.sig
VersionDeltaFile
1.48.2.1+28-6sys/dev/wscons/wsemul_vt100.c
1.37.8.1+17-4sys/dev/wscons/wsemul_sun.c
1.14.2.1+4-2sys/dev/wscons/wsemul_vt100var.h
+49-123 files

OpenBSD/src jqMiVuWsys/uvm uvm_aobj.c

   sys/uvm: validate anonymous object pager requests

   uao_get() trusts the requested page range before allocating pages and
   looking up swap slots; an invalid request can therefore allocate a page
   outside the object and read beyond its swap slot array. Validate the
   request before page lookup or allocation, preserving optional fault
   clustering at the object boundary.

   Reject nonpositive page counts and starting page indices outside the
   object; require the entire range for PGO_ALLPAGES, or a centeridx within
   both the request and the object otherwise. Compare against the remaining
   page count in voff_t and derive pageidx from the validated firstpage,
   avoiding overflow in the bounds check and unchecked narrowing.

   Reported by Andrew Griffiths, thanks!
   from kirill@; OK kettenis@

   this is errata/7.9/018_shmat.patch.sig
VersionDeltaFile
1.122.2.1+36-3sys/uvm/uvm_aobj.c
+36-31 files

OpenBSD/src 7RgTghDsys/uvm uvm_aobj.c

   sys/uvm: validate anonymous object pager requests

   uao_get() trusts the requested page range before allocating pages and
   looking up swap slots; an invalid request can therefore allocate a page
   outside the object and read beyond its swap slot array. Validate the
   request before page lookup or allocation, preserving optional fault
   clustering at the object boundary.

   Reject nonpositive page counts and starting page indices outside the
   object; require the entire range for PGO_ALLPAGES, or a centeridx within
   both the request and the object otherwise. Compare against the remaining
   page count in voff_t and derive pageidx from the validated firstpage,
   avoiding overflow in the bounds check and unchecked narrowing.

   Reported by Andrew Griffiths, thanks!
   from kirill@; OK kettenis@

   this is errata/7.8/054_shmat.patch.sig
VersionDeltaFile
1.116.2.1+36-3sys/uvm/uvm_aobj.c
+36-31 files

OpenBSD/src tDu871Ysbin/fsck_ffs fsck.h extern.h

   use mode_t and symbolic settings; ok millert
VersionDeltaFile
1.36+4-3sbin/fsck_ffs/dir.c
1.36+2-2sbin/fsck_ffs/fsck.h
1.15+2-2sbin/fsck_ffs/extern.h
+8-73 files

OpenBSD/src pb2c37Klib/libexpat Changes, lib/libexpat/lib internal.h xmltok.h

   Backport all changes from libexpat version 2.8.4.

   Relevant for OpenBSD are security fixes #1321 #1331 #1322, other
   changes #1315 #1325 #1334 #1340 #1319 #1320.  Library bump is not
   necessary.
   CVE-2026-66046 CVE-2026-76641 CVE-2026-76957

   from bluhm@; OK tb@

   this is errata/7.9/019_expat.patch.sig
VersionDeltaFile
1.47.2.2+189-64lib/libexpat/lib/xmlparse.c
1.9.4.2+79-0lib/libexpat/tests/basic_tests.c
1.35.2.2+65-0lib/libexpat/Changes
1.10.4.2+56-0lib/libexpat/tests/misc_tests.c
1.9.6.2+2-2lib/libexpat/lib/xmltok.h
1.17.2.2+1-0lib/libexpat/lib/internal.h
+392-666 files

OpenBSD/src njnLW5Ilib/libexpat Changes, lib/libexpat/lib internal.h xmltok.h

   Backport all changes from libexpat version 2.8.4.

   Relevant for OpenBSD are security fixes #1321 #1331 #1322, other
   changes #1315 #1325 #1334 #1340 #1319 #1320.  Library bump is not
   necessary.
   CVE-2026-66046 CVE-2026-76641 CVE-2026-76957

   from bluhm@; OK tb@

   this is errata/7.8/055_expat.patch.sig
VersionDeltaFile
1.44.2.5+189-64lib/libexpat/lib/xmlparse.c
1.7.2.4+79-0lib/libexpat/tests/basic_tests.c
1.32.2.5+65-0lib/libexpat/Changes
1.8.2.3+56-0lib/libexpat/tests/misc_tests.c
1.9.2.2+2-2lib/libexpat/lib/xmltok.h
1.15.2.3+1-0lib/libexpat/lib/internal.h
+392-666 files

OpenBSD/src 8A63RCwusr.sbin/ldapd ldapd.c auth.c

   Assign connections a 64 bit identifier rather than using the socket fd to
   identify them between subprocesses.

   Based on a report from Franz Bettag of Bettag Systems
   from jmatthew@; OK deraadt@

   this is errata/7.9/021_ldapd.patch.sig
VersionDeltaFile
1.40.4.1+7-4usr.sbin/ldapd/ldape.c
1.37.8.1+6-4usr.sbin/ldapd/ldapd.h
1.21.12.1+5-3usr.sbin/ldapd/conn.c
1.32.18.1+2-2usr.sbin/ldapd/ldapd.c
1.16.4.1+2-2usr.sbin/ldapd/auth.c
+22-155 files

OpenBSD/src kHEW1ngusr.sbin/ldapd ldapd.c auth.c

   Assign connections a 64 bit identifier rather than using the socket fd to
   identify them between subprocesses.

   Based on a report from Franz Bettag of Bettag Systems
   from jmatthew@; OK deraadt@

   this is errata/7.8/057_ldapd.patch.sig
VersionDeltaFile
1.40.2.1+7-4usr.sbin/ldapd/ldape.c
1.37.4.1+6-4usr.sbin/ldapd/ldapd.h
1.21.8.1+5-3usr.sbin/ldapd/conn.c
1.32.14.1+2-2usr.sbin/ldapd/ldapd.c
1.16.2.1+2-2usr.sbin/ldapd/auth.c
+22-155 files

OpenBSD/src mhG6opIdistrib/sets/lists/comp md.arm64

   sync
VersionDeltaFile
1.28+2-0distrib/sets/lists/comp/md.arm64
+2-01 files

OpenBSD/src SllgGUYsys/net if_ppp.c bpf_filter.c

   bpf_validate: change len argument to u_int

   All callers of bpf_validate use unsigned values and bpf_validate
   does the same internally.

   OK tb@
VersionDeltaFile
1.124+2-2sys/net/if_ppp.c
1.42+2-2sys/net/bpf_filter.c
1.78+2-2sys/net/bpf.h
1.238+2-2sys/net/bpf.c
+8-84 files

OpenBSD/src 0GveYDmregress/usr.bin/mandoc/mdoc/Bl Makefile colEQ.out_ascii

   test eqn(7) at the end of a column list with no .It macros;
   related to mdoc_validate.c rev. 1.312
VersionDeltaFile
1.1+14-0regress/usr.bin/mandoc/mdoc/Bl/colEQ.in
1.42+6-4regress/usr.bin/mandoc/mdoc/Bl/Makefile
1.1+10-0regress/usr.bin/mandoc/mdoc/Bl/colEQ.out_ascii
+30-43 files