run local sftp "lls" command using makeargv()+glob()+exec rather
than system(); avoids situation where a user could do a tab
expansion in a directory with adversarial content and end up
executing a commandline with backticks, etc in it
Anthropic ANT-2026-QFGM82BB
limit the number and total size of packets that we will queue
while KEX is running. Avoids possible DoS when KEX stalls and local
processes continue generating channel data for too long
Anthropic ANT-2026-Q1334JFN but with a separate threshold after which
the channels stop producing packets too
reserve 32 fds that forwardings are not allowed to use
avoids fd exhaustion causing a mux socket from being accessible
for control messages.
Anthropic ANT-2026-P86OLVI7
When emulating fcmp of two NaN operands, be sure to raise the invalid
exception if the second one is a signaling Nan.
Bug reported by Izumi Tsutsui, thanks!
use the remote address returned from accept(2) for PerSourcePenalties
rather than doing an explicit getpeername(2) lookup later.
Avoids very minor PerSourcePenalties bypass, where the peer connects,
does nothing and then disconnects before getpeername() has a chance
to complete. Also saves a syscall.
Anthropic ANT-2026-MFL5Y7HK
Fix inconsistencies in the fragment counters of the IP stack.
Split the out of memory and the full queue counters. Count dropped
single fragments and dropped whole fragment queues in separate
counters, consistently for IPv4 and IPv6. Atomic fragments are no
longer counted as reassembled, but get a distinct counter. The
netstat -s descriptions are more precise. snmpd ipReasmFails counts
dropped fragment queues, not fragments.
OK claudio@ mvs@
Record authentication attempts earlier in server lifecycle and
change precedence of exit values used to signal server state.
Closes weak username validity oracle via PerSourcePenalties, that was
fairly aggressively rate-limited in the default config.
Anthropic ANT-2026-KQAHPGQP
when performing a remote-to-local recursive copy from a ~user path,
trust the server to expand only the directory component and not
the file component. Avoids a hostile server picking unwanted filenames
Anthropic ANT-2026-JD513QS2
Remove the MAIN_LINK_CHANNEL_CODING_SET check in qcdpc(4).
The HP OmniBook X firmware doesn't program this DPCD register and
leaves it at 0, which made qcdpc_read_link_config() return early,
skipping the restore of the eDP link, so the display stayed dark after
resume. Since we restore whatever value we read, drop this check
entirely, which fixes resume on the HP OmniBook X.
Regression tested by kirill@ on his Honor laptop.
Feedback and ok kettenis@
use fmprintf() to escape banner printed as comment in ssh-keyscan.
Avoids untrusted control characters from hostile servers being exposed
directly to one's terminal.
Anthropic ANT-2026-JC84JZBB
glob.c: Fix potential out-of-bounds write for GLOB_NOSPACE error
When the GLOB_LIMIT option is specified, glob returns the GLOB_NOSPACE
error when hitting either the GLOB_LIMIT_STAT or GLOB_LIMIT_READDIR
limits. Before returning the error, glob stored the path separator
and NUL terminating the result before returning. If we are at the
very end of the path buffer, it is possible for this to write past
the end of the buffer. Change this to just return GLOB_NOSPACE
when the limit is reached without writing the path separator or NUL
terminator.
OK djm@
Reported by ozgun kultekin
Processing finished only if both the entity queue and the lowprio queue
are empty. Adjust the check at the end of the main event loop.
Pointed out by Ties de Kock
OK tb@
Fix swpgonly leak in uvm_swap_dropcluster()
from renaud@; OK kettenis@
Fix typo in my last commit
from renaud@
this is errata/8.0/024_swpgonly.patch.sig
sys: protect special device locks during vnode teardown
Special device advisory locking can race with vnode teardown and access
freed specinfo.
OpenAI reported the problem and supplied an initial patch; that patch
introduced a NULL dereference window by clearing v_specinfo while
leaving the vnode typed VCHR or VBLK across a sleep; it also left
teardown exposed to vnode recycling during the drain.
In other words the initial patch addressed one race, introduced another,
and left the vnode lifetime problem unfixed.
Here the reworked approach with large colaboration with claudio@ with
talks and inputs from deraadt@ and beck@.
Resolve and detach specinfo under lockf_lock, interrupt all pending
requests, and retain its storage until the drain completes. Keep VXLOCK
and the temporary vnode reference through teardown; set VBAD before
[5 lines not shown]
In recv_report first check that the report is sensible via check_report
and then during parse copy only the bytes from the packet needed.
The netmask is stored as 3 bytes with the high byte being 0xff by default.
Also the netid depend on the size of the netmask and needs to be pulled
out of the packet with care.
sys: protect special device locks during vnode teardown
Special device advisory locking can race with vnode teardown and access
freed specinfo.
OpenAI reported the problem and supplied an initial patch; that patch
introduced a NULL dereference window by clearing v_specinfo while
leaving the vnode typed VCHR or VBLK across a sleep; it also left
teardown exposed to vnode recycling during the drain.
In other words the initial patch addressed one race, introduced another,
and left the vnode lifetime problem unfixed.
Here the reworked approach with large colaboration with claudio@ with
talks and inputs from deraadt@ and beck@.
Resolve and detach specinfo under lockf_lock, interrupt all pending
requests, and retain its storage until the drain completes. Keep VXLOCK
and the temporary vnode reference through teardown; set VBAD before
[5 lines not shown]