OpenBSD/src nf1OhqYusr.sbin/rpki-client rsync.c

   Add an explict "--" argument for portable.

   GNU libc getopt allows options out of order with other arguments
   so force getopt to stop option parsing using "--".
   OK tb@
VersionDeltaFile
1.62+2-1usr.sbin/rpki-client/rsync.c
+2-11 files

OpenBSD/src VqWeSdJusr.sbin/bgplgd bgplgd.c

   Add a "--" argv to the execvp of bgpctl for portable.

   GNU libc has this stupid behaviour of allowing options in any order
   and so one needs to terminate the option parsing to be sure none of
   the later user supplied arguments could be interpreted as an option.

   Reported by 7Asecurity
   OK tb@
VersionDeltaFile
1.5+2-1usr.sbin/bgplgd/bgplgd.c
+2-11 files

OpenBSD/src 3RlBDhOusr.sbin/bgplgd slowcgi.c

   Don't fail hard on version mismatch and ignore extra end-of-params messages.

   Replace the lerrx on version mismatch with a lwarnx and error return.
   Switch to ssize_t return for that so that slowcgi_request() can properly
   fail when this happens.

   Also do not execute multiple bgplgd commands when extra end-of-params
   messages are received. Once a command is executed fail to start a 2nd
   one.

   Reported by Frank Denis
   OK tb@
VersionDeltaFile
1.9+14-7usr.sbin/bgplgd/slowcgi.c
+14-71 files

OpenBSD/src douaM8Uusr.sbin/bgpd rde_community.c

   Improve handling of unknown extended communities

   Ext communities are split over the 3 data fields of struct community.
   All ext communities put the first 2 bytes (type and subtype) into data3.
   For EXT_COMMUNITY_TRANS_IPV4 and EXT_COMMUNITY_TRANS_FOUR_AS a 2-4-2 split
   is used. All other types use a 2-2-4 split this should include all unknown
   types. So add default cases into the various switch statements to make this
   happen.

   Reported by 7Asecurity
   OK tb@
VersionDeltaFile
1.26+5-2usr.sbin/bgpd/rde_community.c
+5-21 files

OpenBSD/src IzxgO8Husr.sbin/bgpd mrt.c

   Increase the MRT attribute buffer to MAX_EXT_PKTSIZE so it works in all cases.

   Dumping messages from peers with extended message capability would fail
   since the MRT code was still limited to the old 4096byte size.

   Reported by 7Asecurity
   OK tb@
VersionDeltaFile
1.136+4-4usr.sbin/bgpd/mrt.c
+4-41 files

OpenBSD/src csKnHRqusr.sbin/bgpd parse.y

   Fix use-after-free problems in parse.y

   In error cases using YYERROR data is freed but the global pointer is not
   reset (to NULL or in the case of curpeer to curgroup). On YYERROR yacc
   still moves on and so any rules using e.g. curpeer do a use-after-free.

   Reported by 7Asecurity
   OK tb@
VersionDeltaFile
1.501+6-1usr.sbin/bgpd/parse.y
+6-11 files

OpenBSD/src Fa7t1BOusr.sbin/bgpd rde_rib.c

   Move pt_unref() after the RB_REMOVE() call in rib_remove() to
   prevent use-after-free.

   rib_remove calls pt_unref() before the RB_REMOVE() call which also uses
   re_rib(). re_rib() evaluates re->prefix but pt_unref() could free the
   prefix if the refcount drops to 0.

   Reported by 7Asecurity
   OK tb@
VersionDeltaFile
1.297+3-3usr.sbin/bgpd/rde_rib.c
+3-31 files

OpenBSD/src EjNVoPxusr.bin/tmux sort.c

   fix sort_get_clients() indentation; ok nicm@
VersionDeltaFile
1.6+6-6usr.bin/tmux/sort.c
+6-61 files

OpenBSD/src FLoKJzvusr.bin/tmux window.c

   Check error result correctly (*cause not cause), pointed out by jsg.
VersionDeltaFile
1.323+2-2usr.bin/tmux/window.c
+2-21 files

OpenBSD/src iQqWIxQdistrib/sets/lists/man mi

   sync
VersionDeltaFile
1.1771+1-0distrib/sets/lists/man/mi
+1-01 files

OpenBSD/src x2sxek7usr.bin/newsyslog newsyslog.c newsyslog.8

   newsyslog: add glob(3) support for logfile names

   Allow glob patterns in the logfile_name field of newsyslog.conf(5),
   so that entries like /var/log/app/*.log are expanded at parse time.

   From Alvar Penning, feedback and OK jan@
VersionDeltaFile
1.121+143-47usr.bin/newsyslog/newsyslog.c
1.57+6-2usr.bin/newsyslog/newsyslog.8
+149-492 files

OpenBSD/src bvG9qowusr.bin/ssh ssh-agent.c

   ssh-agent: add -V to usage()

   ok djm
VersionDeltaFile
1.327+3-2usr.bin/ssh/ssh-agent.c
+3-21 files

OpenBSD/src 55WGWtjsys/dev/pci if_mwxreg.h

   add RCS id

   ok claudio@
VersionDeltaFile
1.7+1-0sys/dev/pci/if_mwxreg.h
+1-01 files

OpenBSD/src 37u2imisys/dev/pci if_mwx.c

   In mt7921_e_mcu_fw_pmctrl(), val and mask were swapped.
   Use PCIE_LPCR_HOST_OWN_SYNC for both to make the intent clear.

   ok claudio@
VersionDeltaFile
1.10+2-2sys/dev/pci/if_mwx.c
+2-21 files

OpenBSD/src mt7HRSNusr.bin/ssh/ssh-agent Makefile

   use "ssh-agent -V" to test the binary is functional after relinking
   requested deraadt@
VersionDeltaFile
1.43+2-2usr.bin/ssh/ssh-agent/Makefile
+2-21 files

OpenBSD/src BgejGxausr.bin/ssh ssh-agent.c ssh-agent.1

   add a -V flag to print the version, but mostly as a way to check
   the binary is functional; ok deraadt@
VersionDeltaFile
1.326+7-2usr.bin/ssh/ssh-agent.c
1.87+6-2usr.bin/ssh/ssh-agent.1
+13-42 files

OpenBSD/src g91CPCiusr.sbin/smtpd lka.c

   clear userinfo before sending over imsg.
   This is not an issue by itself but it weakens compartmentalization and may assist
   lateral movement inside the privsep environment after another bug.

   diff by Stuart Thomas <stuart.thomas at triageforge.co.uk>
VersionDeltaFile
1.252+4-1usr.sbin/smtpd/lka.c
+4-11 files

OpenBSD/src dDmLO4ousr.sbin/smtpd mproc.c

   Reject oversized sockaddr payloads received over privsep IPC.
   This is not an issue on its own but may permit lateral movement or memory corruption
   inside the privsep environment after another bug.

   diff by Stuart Thomas <stuart.thomas at triageforge.co.uk>
VersionDeltaFile
1.49+3-1usr.sbin/smtpd/mproc.c
+3-11 files

OpenBSD/src QCkwGbQusr.sbin/smtpd queue_backend.c

   Zero the temporary envelope parsing buffers before use.

   While current parsing paths do not expose uninitialized data, keeping stack residue
   in these transient buffers unnecessarily weakens compartmentalization and may aid
   lateral movement inside the privsep environment after another bug.

   The diff also fixes a theoretical double close race bug which can't really happen in
   smtpd due to requiring concurrency in our single threaded event loop, and which would
   have very limited reliability impact if it was triggered (forcing a mail to fail on a
   schedule tick and be retried at next tick). This is still incorrect so let's avoid a
   copy of this code in more problematic places.

   diff by Stuart Thomas <stuart.thomas at triageforge.co.uk>
VersionDeltaFile
1.70+5-1usr.sbin/smtpd/queue_backend.c
+5-11 files

OpenBSD/src KHp6LrOusr.sbin/smtpd smtp_session.c

   Ensure pending asynchronous lookups do not retain dangling smtp_session references after teardown.

   This is mainly a robustness fix inside the privsep model:
   stale references may permit lateral effects between smtpd processes after another compromise.


   diff by Stuart Thomas <stuart.thomas at triageforge.co.uk>
VersionDeltaFile
1.449+16-1usr.sbin/smtpd/smtp_session.c
+16-11 files

OpenBSD/src QAY3qAJusr.sbin/smtpd crypto.c

   validate encrypted queue buffer sizes before processing auth tag and IV data:
   current callers already treat malformed input as a decrypt failure but rejecting
   truncated buffers earlier makes boundary conditions more explicit.

   diff by Stuart Thomas <stuart.thomas at triageforge.co.uk>
VersionDeltaFile
1.11+5-3usr.sbin/smtpd/crypto.c
+5-31 files

OpenBSD/src wIpLUk8sys/netinet ip_input.c

   Pass correct argument to m_tag_delete() in ip_srcroute()

   When the ip_srcroute function was redone to follow what FreeBSD did
   the m_tag_delete() call was not correctly adjusted. In FreeBSD the
   tag data structs always start with a struct m_tag while in OpenBSD
   this wrapping is not done.

   ip_srcroute is disabled by default and nobody sane turns it on.

   From a report by Frank Denis
   OK dlg@ deraadt@
VersionDeltaFile
1.428+2-2sys/netinet/ip_input.c
+2-21 files

OpenBSD/src mNjTzcesys/netinet6 dest6.c

   Correct ICMPv6 parameter problem in IPv6 destination option.

   If the destination option is placed in a different mbuf than the
   IPv6 header, the calculation of the parameter problem offset was
   wrong.

   found by Quarkslab Vulnerability Reports
   OK deraadt@
VersionDeltaFile
1.25+2-2sys/netinet6/dest6.c
+2-21 files

OpenBSD/src 28h7qqzsys/conf newvers.sh

   7.9-stable
VersionDeltaFile
1.215.2.1+3-3sys/conf/newvers.sh
+3-31 files

OpenBSD/src xs2V2o5sys/dev/fdt rkcomphy.c

   Add missing break.

   From Jan Schreiber
VersionDeltaFile
1.5+2-1sys/dev/fdt/rkcomphy.c
+2-11 files

OpenBSD/src mMOphNZusr.bin/lex nfa.c

   Fix signed integer overflow in repetition count

   OK tb@
VersionDeltaFile
1.15+4-1usr.bin/lex/nfa.c
+4-11 files

OpenBSD/src 4Y4q3Lwdistrib/sets/lists/comp md.armv7

   sync
VersionDeltaFile
1.37+0-1distrib/sets/lists/comp/md.armv7
+0-11 files

OpenBSD/src iGQchf7sys/ufs/ufs ufs_vnops.c

   sys/ufs: make ufs_readdir() use UFS_BUFATOFF()

   Read directory data through UFS_BUFATOFF() instead of routing the
   operation through VOP_READ() into a temporary kernel buffer; this keeps
   directory entry decoding on the buffer cache path, bounds each transfer
   by the buffer size, file size, and caller supplied count, and releases
   each buffer after complete entries are converted.

   Since VOP_READ() no longer provides the access time side effect, mark
   IN_ACCESS under the same MNT_NOATIME rule used by ffs_read().

   OK: deraadt@
VersionDeltaFile
1.165+88-61sys/ufs/ufs/ufs_vnops.c
+88-611 files

OpenBSD/src EW7LAWFsys/dev/ic qwz.c qwzvar.h, sys/dev/pci if_qwz_pci.c

   sys/qwz: add AMPDU callbacks

   Add the same BlockAck task and AMPDU callback plumbing used by qwx.

   This wires net80211 ADDBA/DELBA handling into the existing qwz RX
   TID/reorder setup code, while leaving TX aggregation to firmware as qwx.

   OK: stsp@
VersionDeltaFile
1.38+113-3sys/dev/ic/qwz.c
1.18+16-1sys/dev/ic/qwzvar.h
1.13+5-1sys/dev/pci/if_qwz_pci.c
+134-53 files

OpenBSD/src cRmWGzlsys/dev/ic qwz.c qwzreg.h, sys/dev/pci if_qwz_pci.c

   sys/qwz: add 802.11n with 40Mhz width

   OK: stsp@
VersionDeltaFile
1.37+48-9sys/dev/ic/qwz.c
1.12+3-3sys/dev/pci/if_qwz_pci.c
1.16+2-1sys/dev/ic/qwzreg.h
+53-133 files