** Description changed:
FreeRADIUS chose to skip the CVE process for these and published the
details on its security page [0]. They apply to all 3.0.x releases,
including 3.0.26.
freeradius in jammy (3.0.26~dfsg~git20220223.1.00ed0241fa-0ubuntu3.4)
contains a
stack out-of-bounds write in data2vp_nas_filter_rule() (src/lib/radius.c),
part of the core RADIUS packet decoder.
When reassembling NAS-Filter-Rule (attribute 92, RFC 4849) values, the decoder
copies a byte into the 253-byte stack buffer before checking the bound, and
uses
'>' instead of '>='. A long but well-formed NAS-Filter-Rule causes a one-byte
write past the end of the buffer. A second bug, 'return attr + attr[2] -
start;', reads beyond the attribute when the buffer is empty.
According to upstream's security advisory
(https://www.freeradius.org/security/,
"Multiple issues in <3.0.28 and <3.2.9"), this decoding happens before the
packet is authenticated with the shared secret, so it can be triggered by
anyone able to send UDP packets to the server. The result is at least a remote
denial of service (radiusd aborts on stack-protector detection, or memory is
corrupted).
Since 2026, upstream has stopped requesting CVEs for these issues, so no
CVE ID is expected. The issue and its fix are already public.
Upstream fix:
commit 4024632aacc63ca337f3c5ee476a113673da2de6
"tweak bounds for NAS-Filter-Rule" (Alan DeKok, 2026-03-12)
Included in release_3_0_28 (3.0.28 released 2026-06-02) and 3.2.9.
https://github.com/FreeRADIUS/freeradius-server/commit/4024632aacc63ca337f3c5ee476a113673da2de6
The patch applies to jammy's data2vp_nas_filter_rule(), which is unchanged
from
the pre-fix upstream code.
Other affected releases: noble ships 3.2.5 (affected, <3.2.9).
Jammy's package is a pre-3.0.26 git snapshot that has had only the
CVE-2022-41861 and CVE-2024-3596 patches since release. Upstream 3.0.28 is a
security-focused release that also fixes overflows in EAP-MSCHAPv2 and
EAP-MD5,
memory leaks (proxy Stripped-User-Name updates, home-server ping packets), and
EAP-PWD threading failures (https://www.freeradius.org/security/). Upstream
has
not identified the individual commits or published CVEs for these as they do
not
so intentionally. Backporting 4024632aacc6 alone fixes the most serious item
and updating jammy to 3.0.28 would pick up the rest.
Some of those security-focused fixes are:
1. NAS-Filter-Rule overflow
A long but well-formed NAS-Filter-Rule writes one byte past a 253-byte stack
buffer,
and an empty one makes the decoder read past the attribute. Upstream says this
happens before the shared secret is checked, so anyone who can send UDP to
the server can crash it.
upstream fix:
https://github.com/FreeRADIUS/freeradius-server/commit/4024632aacc63ca337f3c5ee476a113673da2de6
2. EAP overflows
EAP-MD5: the client-supplied length field isn't checked against the packet
length.
The server then reads past the packet buffer, and a length miscalculation can
lead to
a copy of up to about 64 KB. Any supplicant can trigger it without
credentials. 3.0.28
has only part of the fix; the rest is in an unreleased commit on the v3.0.x
branch.
upstream fix:
https://github.com/FreeRADIUS/freeradius-server/commit/07471c5b30981c3d4a516075045220a9579e7e76
3. Home-server ping packets
Statistics code dereferences a missing packet for ping packets the server
generates itself,
which can crash the server. This is a crash fix, not the ping memory leak the
advisory describes.
https://github.com/FreeRADIUS/freeradius-server/commit/3448cd0dc1c6fb7842cda2bb1223256062b39ff7
4. RadSec / TCP
- The connection count isn't reduced when a TCP accept fails, so the server
canstop accepting new RadSec/TCP connections (#5458).
https://github.com/FreeRADIUS/freeradius-server/commit/ae2d78103c27dfeafc5b6b77ff60964563e05eba
- Duplicate packets are sent when a CoA packet arrives before any
authentication packets (#5397). Jammy already carries a patch for this,
lp-2087740-fix-duplicate-packet-send.patch; check whether it's the same change.
https://github.com/FreeRADIUS/freeradius-server/commit/5e44cf81d833ecb698191dfce90ce62713d5eed7
- The server no longer reads packet contents it isn't going to use from TCP
sockets, which avoids problems with partially received packets.
https://github.com/FreeRADIUS/freeradius-server/commit/1b7701240d9eda90b54848dd67a2624a87063828
- Child TCP/TLS listeners no longer inherit the parent listener's list of
child connections.
https://github.com/FreeRADIUS/freeradius-server/commit/094d7223d467
- Fixes a memory leak of the authority-info-access data taken from TLS
certificates.
https://github.com/FreeRADIUS/freeradius-server/commit/af8c74bd5140ebbf708e8eaff044c65c4bc53bad
- Sets the memory-allocation context for client TLS sessions, so session
memory is tied to the right owner and freed properly.
https://github.com/FreeRADIUS/freeradius-server/commit/1dcc3c23616e
- Fixes how client certificates that aren't in the local trust store are
handled during verification.
https://github.com/FreeRADIUS/freeradius-server/commit/1eb61bce49ddc4e8fc02adc7a5aa5bbd466718c1
+
+ I checked the current source packages for Noble (3.2.5+dfsg-3~ubuntu24.04.3)
and Resolute (3.2.8+dfsg-1ubuntu2).
+
+ All the ones listed above for Jammy description are still not fixed in
+ Noble.
+
+ Resolute has some of them but the following aren't fixed:
+ - NAS-Filter-Rule bounds: “A long but well-formed NAS-Filter-Rule writes one
byte past a 253-byte stack buffer, and an empty one makes the decoder read past
the attribute.” Upstream fix:
https://github.com/FreeRADIUS/freeradius-server/commit/4024632aacc63ca337f3c5ee476a113673da2de6
+ - EAP-MD5 length checks: “The client-supplied length field isn't checked
against the packet length.” Upstream fix:
https://github.com/FreeRADIUS/freeradius-server/commit/07471c5b30981c3d4a516075045220a9579e7e76
+ - child listeners: “Child TCP/TLS listeners no longer inherit the parent
listener's list of child connections.”
https://github.com/FreeRADIUS/freeradius-server/commit/094d7223d467
+ - TLS session allocation context: “Sets the memory-allocation context for
client TLS sessions, so session memory is tied to the right owner and freed
properly.” https://github.com/FreeRADIUS/freeradius-server/commit/1dcc3c23616e
+
+ For Noble and Resolute, the equivalent version upgrade would be 3.2.9.
+
+ Please note that the above, the list isn't exhaustive and is what *I
+ think* as necessary security fixes but I am not security expert.
+
[0] https://www.freeradius.org/security/
** Changed in: freeradius (Ubuntu Noble)
Status: Incomplete => New
** Changed in: freeradius (Ubuntu Resolute)
Status: Incomplete => New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175708
Title:
freeradius upgrade to 3.0.28 for Jammy
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/freeradius/+bug/2175708/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs