ipsec: the default offer names the null cipher beside aes-cbc
The UE is to announce the IPsec algorithms it supports (TS 24.229 5.1.1.2.2 d), and TS 33.203 7.2 has its first REGISTER carry "a list of identifiers for the integrity and encryption algorithms, which the UE supports". The null cipher is one a UE must support (7.1 by TS 33.210 5.3.3 and RFC 8221; GSMA IR.92 5.3), and imsd can install it, but its default offer named aes-cbc alone. Ice Norway has answered imsd's first REGISTER 403 (2026-11-01, -02), where the phone's own modem had carried a call with the CS domain detached (2026-09-02). On Odido it drew an answer that the imsd of that day did not log, and the Python stack's REGISTER minutes later a 403 (2026-09-16), with a SIM that another Fairphone 6's own IMS client had registered with (2026-07-15). That client's four mechanisms were answered with one naming ealg=null, as the Python stack's offer of the null cipher was (2026-07-13). Whether the offer is the reason for either answer is not measured. The default offer is aes-cbc, then null. A P-CSCF that selects the null cipher from it gets SAs that protect the signalling's integrity and do not encrypt it; EALG=aes-cbc gives 1.2.1's offer. Tested: the suites; the daemon of this commit against a stand-in P-CSCF on the workstation that refuses an offer without the null cipher (imsd 1.2.1 is answered 403 there, this commit's is challenged and selects the null mechanism); on the FP6 on KPN, in an earlier build of this change, on 1.2.0, a reregistration and a fresh registration with the default offer: KPN named aes-cbc, and answered the reregistration, the fresh registration's protected REGISTER and the reg-event SUBSCRIBEs 200.
This commit is contained in:
parent
ed2a009425
commit
d3c1ba4a29
6 changed files with 53 additions and 13 deletions
30
AGENTS.md
30
AGENTS.md
|
|
@ -493,7 +493,15 @@ Rules:
|
|||
`tests/Ipsec` with two of O2's recorded lists, each its answer to an
|
||||
offer of one cipher, and run against a stand-in P-CSCF that marks the
|
||||
lower-q of the two as far as the `SA:` line; no capture holds O2's
|
||||
answer to imsd offering two); a Security-Server list `PersistState` writes empty (one with
|
||||
answer to imsd offering two); the default offer's null cipher taken
|
||||
by a network (KPN named `aes-cbc` to the two-cipher offer at a fresh
|
||||
registration and answered a reregistration that carried it 200: the dev
|
||||
phone, 2026-11-22, an earlier build of this change, on 1.2.0; the
|
||||
selection of a null entry is pinned in `tests/Ipsec` with Odido's answer
|
||||
of 2026-07-13 to the Python stack's offer of the null cipher and ran
|
||||
against a stand-in P-CSCF on the workstation as far as the `SA:` line;
|
||||
no capture holds a registration of imsd's over a null SA pair); a
|
||||
Security-Server list `PersistState` writes empty (one with
|
||||
a quote, a backslash or a newline — neither KPN's nor O2's list has
|
||||
one; the resume of such a file ran with a hand-edited empty key,
|
||||
2026-10-11); a state write of a standing registration after a fresh
|
||||
|
|
@ -2466,6 +2474,14 @@ only the imsd side of its bus choice.
|
|||
or paired, between any addresses — goes, with the reqid-1/2 transport-mode
|
||||
ESP states in its direction, and a reqid-1/2 transport-mode ESP state on the
|
||||
UE's ims-PDN address goes whoever made it (`tests/Ipsec` pins both).
|
||||
- Whether the signalling is encrypted inside the SAs is the P-CSCF's
|
||||
choice (TS 33.203 5.1.3): the default offer names `aes-cbc` and the null
|
||||
cipher, and with the null cipher selected the SAs protect the
|
||||
signalling's integrity and do not encrypt it. `EALG=aes-cbc` offers
|
||||
encryption only; a P-CSCF that answers it with the null cipher alone is
|
||||
followed all the same (README, `EALG`: when no entry matches). The
|
||||
protected REGISTER repeats the Security-Client for the P-CSCF to compare
|
||||
with the first one's (TS 33.203 Annex H).
|
||||
- The bus policies deliberately let any local account *reach* both names;
|
||||
authorization is polkit's, not the policy file's. Keep it that way: a
|
||||
policy that names an account breaks the moment the account is called
|
||||
|
|
@ -2549,6 +2565,18 @@ the related code.
|
|||
one succeed, while
|
||||
the fresh registrations that followed were accepted: the origin of the
|
||||
5.1.1.4.2 refresh shape. KPN accepts both shapes without a challenge.
|
||||
- **The security offer.** KPN answered the two-cipher offer with one
|
||||
mechanism, `hmac-sha-1-96` with `aes-cbc`, at a fresh registration, and
|
||||
answered a reregistration that carried it 200 (the dev phone, 2026-11-22,
|
||||
an earlier build of this change, on 1.2.0). Odido answered an offer that
|
||||
named the null cipher with one mechanism naming `ealg=null`: the
|
||||
Python stack's offer of that one cipher (2026-07-13) and the four
|
||||
mechanisms of another Fairphone 6's own IMS client, which then
|
||||
registered (2026-07-15). On KPN's ims PDN (MTU 1280) the netdev counted
|
||||
one datagram fragmented in two after a boot with one fresh registration,
|
||||
with one mechanism offered and with two (the dev phone, 2026-11-22):
|
||||
the first REGISTER goes over UDP whatever its size, and KPN challenged
|
||||
both.
|
||||
- **KPN closes a registration's previous reg-event subscription with
|
||||
`noresource`** when a new one replaces it: that end is not renewed.
|
||||
- **Modem attach-family forcing** (Odido, O2 UK, Swisscom): an APN-string
|
||||
|
|
|
|||
Loading…
Reference in a new issue