<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sbin, branch stable/13</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F13</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F13'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-04-30T21:07:18Z</updated>
<entry>
<title>dhclient: Improve server and filename validation</title>
<updated>2026-04-30T21:07:18Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-04-30T16:45:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b1ece85741db0db60ce68daca564f03dc711fe30'/>
<id>urn:sha1:b1ece85741db0db60ce68daca564f03dc711fe30</id>
<content type='text'>
* Don't iterate over each string three times; once is enough.

* Reject control characters (anything below space) in addition to the
  double quote and backslash.

* If an unsafe character is encountered, discard the string instead of
  rejecting the entire lease.

* If backslashes are encountered in the file name option, convert them
  to forward slashes instead of rejecting the option.

* Tweak the warning messages a bit.  Looking through the rest of the
  code, it seems to me that notes generally end with a period while
  warnings generally don't.

Fixes:		8008e4b88daf ("dhclient: Check for unexpected characters in some DHCP server options")
PR:		294886
MFC after:	1 week
Reviewed by:	brooks, markj
Differential Revision:	https://reviews.freebsd.org/D56740

(cherry picked from commit 873a195ba63575e46686cfd6ea9670a0ca340fa0)
</content>
</entry>
<entry>
<title>dhclient: Fix reallocation of dhclient script environments</title>
<updated>2026-04-28T17:06:01Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-04-27T20:56:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5d3e93fda7cead5e8106be748cb8828f18f0aadc'/>
<id>urn:sha1:5d3e93fda7cead5e8106be748cb8828f18f0aadc</id>
<content type='text'>
When the number of DHCP options exceeds a threshold, script_set_env()
will reallocate the environment, stored as an array of pointers.  The
calculation of the array size failed to multiply by the pointer size,
resulting in a smaller than expected buffer which admits out-of-bounds
writes.

Approved by:	so
Security:	FreeBSD-SA-26:15.dhclient
Security:	CVE-2026-42511
Reported by:	Joshua Rogers of AISLE Research Team (https://aisle.com/)
</content>
</entry>
<entry>
<title>dhclient: Check for unexpected characters in some DHCP server options</title>
<updated>2026-04-28T17:06:01Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-04-27T20:03:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=46c01e4dd1026bee017a86fd9906d2554cd910b6'/>
<id>urn:sha1:46c01e4dd1026bee017a86fd9906d2554cd910b6</id>
<content type='text'>
Some options are written directly to the lease file, which may be parsed
by subsequent dhclient invocations.  We must make sure that a malicious
server can't control the "medium" field of a lease definition, otherwise
they can achieve RCE by injecting one into the lease file, whereupon it
will be passed to dhclient-script, which passes it through eval.

Approved by:	so
Security:	FreeBSD-SA-26:12.dhclient
Security:	CVE-2026-42511
Reported by:	Joshua Rogers of AISLE Research Team (https://aisle.com/)
</content>
</entry>
<entry>
<title>ippool(5): Correct example in man page</title>
<updated>2026-04-24T04:47:14Z</updated>
<author>
<name>Cy Schubert</name>
<email>cy@FreeBSD.org</email>
</author>
<published>2026-04-17T04:05:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3246fe5f6167a40e813af5f1332e639efaab5f16'/>
<id>urn:sha1:3246fe5f6167a40e813af5f1332e639efaab5f16</id>
<content type='text'>
The example provided puts the semicolon in the wrong place. It must
come after the file:// specification, not in it.

(cherry picked from commit f5d0b30e4af1163bdc18a893b17236517b67790a)
</content>
</entry>
<entry>
<title>ping6: treat setsockopt failures as fatal</title>
<updated>2026-04-24T00:53:10Z</updated>
<author>
<name>Christos Longros</name>
<email>chris.longros@gmail.com</email>
</author>
<published>2026-04-17T18:19:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c2b4fbdb45e995c91afde8ab796270bc0dadea37'/>
<id>urn:sha1:c2b4fbdb45e995c91afde8ab796270bc0dadea37</id>
<content type='text'>
ping6 needs IPV6_RECVPKTINFO and IPV6_RECVHOPLIMIT to process
incoming replies. When these options fail, replies are silently
dropped and ping6 appears to hang. Use err(3) instead of warn(3)
so the user gets a clear error and immediate exit.

Signed-off-by: Christos Longros &lt;chris.longros@gmail.com&gt;

Reviewed by:	pouria, jlduran, glebius
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D56237

(cherry picked from commit 9a4a9f623bbaf991b3ba580593d47f2ee9f7b03b)
</content>
</entry>
<entry>
<title>tunefs: Don't combine GEOM journaling with SU</title>
<updated>2026-04-04T08:59:33Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-03-21T07:21:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e28c20959cd3aa526a6e86d8e9fe55fda326a951'/>
<id>urn:sha1:e28c20959cd3aa526a6e86d8e9fe55fda326a951</id>
<content type='text'>
GEOM journaling shouldn't be used at the same time as soft updates, so
don't enable one if the other is already in use.

MFC after:	1 week
PR:		293896
Reviewed by:	mckusick
Differential Revision:	https://reviews.freebsd.org/D56002

(cherry picked from commit b1f72dd2a9a5e69a310b9e76b55f16cff433b8da)
</content>
</entry>
<entry>
<title>newfs: Don't combine GEOM journaling with SU</title>
<updated>2026-04-04T08:59:33Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-03-21T07:21:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a4b2be2f6a9a155c56c876aabf3175301c4a84de'/>
<id>urn:sha1:a4b2be2f6a9a155c56c876aabf3175301c4a84de</id>
<content type='text'>
GEOM journaling shouldn't be used at the same time as soft updates, so
don't enable soft updates if GEOM journaling has been requested, and
error out if both are explicitly requested.

MFC after:	1 week
PR:		293896
Reviewed by:	mckusick
Differential Revision:	https://reviews.freebsd.org/D55999

(cherry picked from commit e30fcdaae2e68458da83d5420e6034c5f384e5f2)
</content>
</entry>
<entry>
<title>nextboot: Reimplement missing -a option</title>
<updated>2026-02-05T15:01:12Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-12-13T22:46:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b3f23ae1e22bf88de5ec09c524e7e0beb16b5c76'/>
<id>urn:sha1:b3f23ae1e22bf88de5ec09c524e7e0beb16b5c76</id>
<content type='text'>
PR:		260520
MFC after:	3 days
Fixes:		e307eb94ae52 ("loader: zfs should support bootonce an nextboot")

(cherry picked from commit 33510b16e663bde5be5e4a56ccb17f848c41ef4e)
</content>
</entry>
<entry>
<title>mdmfs: Fix soft updates logic</title>
<updated>2026-01-31T17:50:18Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-01-22T18:16:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=df69b5792b2a71bad9dc1646e50be446e744c302'/>
<id>urn:sha1:df69b5792b2a71bad9dc1646e50be446e744c302</id>
<content type='text'>
Now that newfs(8) has a command-line argument to disable soft updates,
use that instead of running tunefs(8) after the fact to turn them off.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
Reviewed by:	mckusick, imp
Differential Revision:	https://reviews.freebsd.org/D54783

(cherry picked from commit 4b9620433855b75989164c1a8a8a2e1a9b5fbff2)
</content>
</entry>
<entry>
<title>newfs: Add an option to disable soft updates</title>
<updated>2026-01-31T17:50:18Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-01-11T02:34:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ad64308af9e3b61cc83acd6645ad608e63e97406'/>
<id>urn:sha1:ad64308af9e3b61cc83acd6645ad608e63e97406</id>
<content type='text'>
A previous commit turned soft updates on by default for UFS2 without
providing a way to turn them off.  This corrects that by adding a new -u
flag which forces soft updates (and soft updates journaling) off.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
Fixes:		61dece6d27fb ("Enable soft updates by default for UFS2 filesystems.")
Reviewed by:	mckusick
Differential Revision:	https://reviews.freebsd.org/D54576

(cherry picked from commit 68562f8145e8154e7e276897a546995f0d8f3428)

newfs: Add -u to getopt string

Fixes:		68562f8145e8 ("newfs: Add an option to disable soft updates")
(cherry picked from commit 717ae163919e48f000b94f85dc188e0d92261929)
</content>
</entry>
</feed>
