Update NSS to new version 6fb125cd44fa7b9e6267872b4405526f9f4ee1d8 from 2026-11-16 17:30:01 UTC
Categories
(Core :: Security: PSM, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: update-bot, Assigned: update-bot)
References
Details
(Whiteboard: [3pl-filed][task_id: KhNzKzgcSE-DO_GPPlVPKQ])
Attachments
(1 external file)
This update covers 12 commits, including 2 new upstream commits I've never filed a bug on before. (They're the top 2.). Here are the overall diff statistics, and then the commit information.
security/manager/ssl/RootHashes.inc | 6 +
security/nss/cmd/lib/secutil.c | 1 +
security/nss/cmd/tstclnt/tstclnt.c | 260 +--
security/nss/coreconf/WIN32.mk | 5 +-
security/nss/coreconf/command.mk | 2 +-
security/nss/coreconf/config.gypi | 4 +-
security/nss/cpputil/Makefile | 2 -
security/nss/gtests/certdb_gtest/decode_certs_unittest.cc | 13 +-
security/nss/gtests/certdb_gtest/smime_profile_unittest.cc | 79 +
security/nss/gtests/common/gtest.mk | 2 -
security/nss/gtests/mozpkix_gtest/mozpkix_gtest.gyp | 2 +
security/nss/gtests/mozpkix_gtest/pkixcheck_CheckSignatureAlgorithm_tests.cpp | 112 +
security/nss/gtests/mozpkix_gtest/pkixder_pki_types_tests.cpp | 104 +-
security/nss/gtests/mozpkix_gtest/pkixgtest.h | 26 +
security/nss/gtests/mozpkix_gtest/pkixmldsa_tests.cpp | 980 ++++++++++
security/nss/gtests/nss_bogo_shim/Makefile | 2 -
security/nss/gtests/pk11_gtest/pk11_ecdsa_unittest.cc | 9 +
security/nss/gtests/pk11_gtest/pk11_eddsa_unittest.cc | 12 +
security/nss/gtests/pk11_gtest/pk11_mldsa_unittest.cc | 19 +
security/nss/gtests/pk11_gtest/pk11_rsapkcs1_unittest.cc | 12 +
security/nss/gtests/pk11_gtest/pk11_rsapss_unittest.cc | 19 +
security/nss/gtests/pk11_gtest/pk11_signature_test.h | 30 +
security/nss/gtests/ssl_gtest/manifest.mn | 1 +
security/nss/gtests/ssl_gtest/ssl_gtest.gyp | 1 +
security/nss/gtests/ssl_gtest/ssl_ocsp_stapling_unittest.cc | 245 ++
security/nss/lib/certdb/stanpcertdb.c | 2 +-
security/nss/lib/ckfw/builtins/certdata.txt | 7 +-
security/nss/lib/freebl/ec.c | 9 +-
security/nss/lib/mozpkix/include/pkix-test/pkixtestutil.h | 7 +
security/nss/lib/mozpkix/include/pkix/pkix.h | 5 +
security/nss/lib/mozpkix/include/pkix/pkixder.h | 27 +-
security/nss/lib/mozpkix/include/pkix/pkixnss.h | 7 +
security/nss/lib/mozpkix/include/pkix/pkixtypes.h | 31 +
security/nss/lib/mozpkix/include/pkix/pkixutil.h | 5 -
security/nss/lib/mozpkix/lib/pkixc.cpp | 23 +
security/nss/lib/mozpkix/lib/pkixcert.cpp | 1 +
security/nss/lib/mozpkix/lib/pkixcheck.cpp | 107 +-
security/nss/lib/mozpkix/lib/pkixder.cpp | 41 +-
security/nss/lib/mozpkix/lib/pkixnss.cpp | 46 +
security/nss/lib/mozpkix/lib/pkixverify.cpp | 26 +-
security/nss/lib/mozpkix/mozpkix.gyp | 138 +-
security/nss/lib/mozpkix/test-lib/pkixtestalg.cpp | 31 +
security/nss/lib/mozpkix/test-lib/pkixtestnss.cpp | 74 +-
security/nss/lib/pk11wrap/pk11cert.c | 7 +
security/nss/lib/pki/certificate.c | 7 +-
security/nss/lib/pki/pki3hack.c | 16 +-
security/nss/lib/pki/pkim.h | 5 +-
security/nss/lib/smime/smimeutil.c | 16 +-
security/nss/lib/softoken/pkcs11c.c | 15 +-
security/nss/lib/ssl/mozpkixwrappers.cpp | 2 +-
security/nss/moz.yaml | 4 +-
security/nss/taskcluster/kinds/test/kind.yml | 3 +-
security/nss/tests/all.sh | 7 +-
security/nss/tests/ssl/ssl.sh | 79 +-
security/nss/tests/ssl_gtests/ssl_gtest_db.sh | 1 +
55 files changed, 2215 insertions(+), 482 deletions(-)
Commits by author:
6 John Schanck <jschanck@mozilla.com> (all unsigned)
2 Goutam Tamvada <gtamvada@mozilla.com> (all unsigned)
1 Dana Keeler <dkeeler@mozilla.com> (unsigned)
1 Francesco Rollo <eferollo@gmail.com> (unsigned)
1 Joachim Vandersmissen <joachim.vandersmissen@atsec.com> (unsigned)
1 kaie <kaie@thunderbird.net> (unsigned)
6fb125cd44fa7b9e6267872b4405526f9f4ee1d8 by kaie <kaie@thunderbird.net>
https://github.com/mozilla/nss/commit/6fb125cd44fa7b9e6267872b4405526f9f4ee1d8
Authored: 2026-11-16 17:30:01 +0000
Committed: 2026-11-16 17:30:01 +0000
Bug 2087611 - NSS smime: decode the RC2 capability parameter with QuickDER. r=nss-reviewers,rrelyea
NSS_SMIMEUtil_FindBulkAlgForRecipients chooses the content cipher from the
recipients' stored S/MIME profiles. A profile is the SMIMECapabilities
attribute of an earlier signed message from that recipient, so its bytes come
from a remote sender. The capability list is already decoded with QuickDER
(smimeutil.c, smime_choose_cipher). Only the parameter of an RC2-CBC
capability, the key size as an INTEGER, was decoded with the streaming
decoder (SEC_ASN1DecodeItem). This patch decodes it with QuickDER too, so
choosing a cipher no longer runs the streaming decoder on remote data.
Why the result is the same for every caller:
The parameter reaches nss_SMIME_FindCipherForSMIMECap as cap->parameters,
which the outer QuickDER decode captured as an ANY (quickder.c, DecodeItem:
ANY is taken with GetItem(..., includeTag)). So it is exactly one TLV: a
single tag octet, a minimal definite length, and contents of exactly that
length, with nothing after it (quickder.c, definite_length_decoder). On such
input both decoders, with SEC_IntegerTemplate and a siBuffer destination,
behave the same:
- Tag: both accept only 0x02. The streaming decoder compares the
constructed bit for INTEGER, since INTEGER is not one of the string types
it allows in constructed form (secasn1d.c,
sec_asn1d_init_state_based_on_template; sec_asn1d_confirm_identifier).
QuickDER checks class, tag number, and primitive form for universal types
(quickder.c, MatchComponentType). - Length: already checked by the outer decode; no trailing data is possible.
- Contents: both return the contents octets unchanged. Leading zeros are
only stripped for siUnsignedInteger (secasn1d.c, sec_asn1d_parse_leaf;
quickder.c, DecodeItem), and keyItem is siBuffer. - Empty contents: QuickDER rejects an empty INTEGER (quickder.c, DecodeItem).
The streaming decoder returns an empty item with data NULL, which the
following SEC_ASN1DecodeInteger rejects (secasn1d.c). Both end in
SEC_OID_UNKNOWN.
After decoding, the code is unchanged: SEC_ASN1DecodeInteger and the key size
mapping. The only differences are internal: the error code set on a failed
decode (not reported; the function returns SEC_OID_UNKNOWN), and keyItem now
points into cap->parameters, which lives in the profile until the end of the
loop iteration, instead of a heap copy.
Testing: certdb_gtest SMimeCipherChoiceTest stores a profile [RC2-CBC with a
given parameter, AES-128-CBC] and checks the chosen cipher: key sizes 128 and
64 choose RC2; an unsupported key size, an empty INTEGER, a constructed
INTEGER, and an OCTET STRING are ignored and AES-128 is chosen. The tests
pass with and without the change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Differential Revision: https://phabricator.services.mozilla.com/D338421
Files Modified:
- gtests/certdb_gtest/smime_profile_unittest.cc
- lib/smime/smimeutil.c
e7b94495b929d5100d897a769a1ce8fa2be655c9 by Joachim Vandersmissen <joachim.vandersmissen@atsec.com>
https://github.com/mozilla/nss/commit/e7b94495b929d5100d897a769a1ce8fa2be655c9
Authored: 2026-11-16 16:54:53 +0000
Committed: 2026-11-16 16:54:53 +0000
Bug 2092801 - expose MLKEM1024 in tstclnt and selfserv r=nss-reviewers,jschanck
Differential Revision: https://phabricator.services.mozilla.com/D342854
Files Modified:
- cmd/lib/secutil.c
8c60e757c30b1b239bae46532b4f6d4ebb1e1cad by John Schanck <jschanck@mozilla.com>
https://github.com/mozilla/nss/commit/8c60e757c30b1b239bae46532b4f6d4ebb1e1cad
Authored: 2026-11-13 23:31:24 +0000
Committed: 2026-11-13 23:31:24 +0000
Bug 2092662 - restore websites trust bit and set distrust-after for DigiCert Trusted Root G4. r=bwilson
Differential Revision: https://phabricator.services.mozilla.com/D342740
Files Modified:
- lib/ckfw/builtins/certdata.txt
7287efb19ec8467d6c8151250e1312a649efe74b by Goutam Tamvada <gtamvada@mozilla.com>
https://github.com/mozilla/nss/commit/7287efb19ec8467d6c8151250e1312a649efe74b
Authored: 2026-11-13 19:38:57 +0000
Committed: 2026-11-13 19:38:57 +0000
Bug 2086204 - Add gtests to exercise OCSP checking in the default SSL_AuthCertificate(). r=jschanck,nss-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D341623
Files Added:
- gtests/ssl_gtest/ssl_ocsp_stapling_unittest.cc
Files Modified:
- gtests/ssl_gtest/manifest.mn
- gtests/ssl_gtest/ssl_gtest.gyp
- taskcluster/kinds/test/kind.yml
- tests/ssl_gtests/ssl_gtest_db.sh
0f4530eddaa5754495d3af19fdd420cc4e64ec46 by Goutam Tamvada <gtamvada@mozilla.com>
https://github.com/mozilla/nss/commit/0f4530eddaa5754495d3af19fdd420cc4e64ec46
Authored: 2026-11-13 19:38:56 +0000
Committed: 2026-11-13 19:38:56 +0000
Bug 2086204 - Remove tstclnt's -F/-M side-channel OCSP verification. r=jschanck,nss-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D337291
Files Modified:
- cmd/tstclnt/tstclnt.c
- tests/all.sh
- tests/ssl/ssl.sh
41ce7c3d53928ac4d08045a20bb6468f1c02a4c2 by John Schanck <jschanck@mozilla.com>
https://github.com/mozilla/nss/commit/41ce7c3d53928ac4d08045a20bb6468f1c02a4c2
Authored: 2026-11-13 18:24:14 +0000
Committed: 2026-11-13 18:24:14 +0000
Bug 2092346 - Don't define mozpkix_ssl in mozpkix-only builds. r=goutam
Differential Revision: https://phabricator.services.mozilla.com/D342393
Files Modified:
- lib/mozpkix/mozpkix.gyp
5cd24fddc485f0fd9debc5ec8a9405dcaf864753 by John Schanck <jschanck@mozilla.com>
https://github.com/mozilla/nss/commit/5cd24fddc485f0fd9debc5ec8a9405dcaf864753
Authored: 2026-11-12 21:02:32 +0000
Committed: 2026-11-12 21:02:32 +0000
Bug 2068282 - add ML-DSA tests for mozilla::pkix. r=nss-reviewers,goutam,keeler
Differential Revision: https://phabricator.services.mozilla.com/D337328
Files Added:
- gtests/mozpkix_gtest/pkixmldsa_tests.cpp
Files Modified:
- gtests/mozpkix_gtest/mozpkix_gtest.gyp
- gtests/mozpkix_gtest/pkixcheck_CheckSignatureAlgorithm_tests.cpp
- gtests/mozpkix_gtest/pkixder_pki_types_tests.cpp
- gtests/mozpkix_gtest/pkixgtest.h
- gtests/pk11_gtest/pk11_mldsa_unittest.cc
- lib/mozpkix/include/pkix-test/pkixtestutil.h
- lib/mozpkix/test-lib/pkixtestalg.cpp
- lib/mozpkix/test-lib/pkixtestnss.cpp
43db94dcbf2eaca510165f0c4616cba0b14cc3b5 by John Schanck <jschanck@mozilla.com>
https://github.com/mozilla/nss/commit/43db94dcbf2eaca510165f0c4616cba0b14cc3b5
Authored: 2026-11-12 21:02:31 +0000
Committed: 2026-11-12 21:02:31 +0000
Bug 2068282 - split PublicKeyAlgorithm::MLDSA into one algorithm per parameter set. r=nss-reviewers,keeler
Keeping the parameter set lets mozilla::pkix check that it is used
consistently:
- der::PublicKeyAlgorithm::MLDSA is now MLDSA_44, MLDSA_65 and MLDSA_87,
so CheckSignatureAlgorithm rejects certificates whose two signature
algorithm fields name different parameter sets (RFC 5280 4.1.1.2). - TrustDomain::VerifyMLDSASignedData and VerifyMLDSASignedDataNSS take the
parameter set named by the signature algorithm, and
VerifyMLDSASignedDataNSS rejects keys that are not ML-DSA keys or that
are for a different parameter set. - New MLDSAParameterSet enum and TrustDomain::CheckMLDSAParameterSetIsAcceptable
hook, called from CheckSubjectPublicKeyInfo, so that applications can
refuse ML-DSA keys by parameter set. - CheckSubjectPublicKeyInfo checks that an ML-DSA public key has the
length that FIPS 204 gives for its parameter set. - ML-DSA AlgorithmIdentifiers must not have parameters, not even NULL
(RFC 9881 Section 2).
Differential Revision: https://phabricator.services.mozilla.com/D337327
Files Modified:
- lib/mozpkix/include/pkix/pkixder.h
- lib/mozpkix/include/pkix/pkixnss.h
- lib/mozpkix/include/pkix/pkixtypes.h
- lib/mozpkix/lib/pkixc.cpp
- lib/mozpkix/lib/pkixcheck.cpp
- lib/mozpkix/lib/pkixder.cpp
- lib/mozpkix/lib/pkixnss.cpp
- lib/mozpkix/lib/pkixverify.cpp
56bedb172b13f280418bc57fed8496328a656f8a by Francesco Rollo <eferollo@gmail.com>
https://github.com/mozilla/nss/commit/56bedb172b13f280418bc57fed8496328a656f8a
Authored: 2026-11-12 21:02:31 +0000
Committed: 2026-11-12 21:02:31 +0000
Bug 2068282 - Enable ML-DSA signature verification for certificate chain validation r=keeler
- Added
MLDSAto thePublicKeyAlgorithmenum inpkixder.h. - Implemented
VerifyMLDSASignedDataNSSfor verifying raw ML-DSA signatures. - Extended the
TrustDomaininterface with a virtual methodVerifyMLDSASignedData(). - Integrated ML-DSA support into:
pkixverify.cpp(verification dispatch)pkixcheck.cpp(OID recognition and public key checks)pkixder.cpp(signature algorithm decoding)pkixnss.cpp(signature mechanism handling)
- Defined and matched the ML-DSA OIDs.
- Enforced the DER encoding rule that ML-DSA AlgorithmIdentifier must omit parameters.
Signed-off-by: Francesco Rollo <eferollo@gmail.com>
Differential Revision: https://phabricator.services.mozilla.com/D264144
Files Modified:
- lib/mozpkix/include/pkix/pkixder.h
- lib/mozpkix/include/pkix/pkixnss.h
- lib/mozpkix/include/pkix/pkixtypes.h
- lib/mozpkix/lib/pkixc.cpp
- lib/mozpkix/lib/pkixcheck.cpp
- lib/mozpkix/lib/pkixder.cpp
- lib/mozpkix/lib/pkixnss.cpp
- lib/mozpkix/lib/pkixverify.cpp
cffbcbf846e3ac6f3c1dc677122fbcff8d3f8a5c by John Schanck <jschanck@mozilla.com>
https://github.com/mozilla/nss/commit/cffbcbf846e3ac6f3c1dc677122fbcff8d3f8a5c
Authored: 2026-11-12 21:02:31 +0000
Committed: 2026-11-12 21:02:31 +0000
Bug 2068282 - build C++ code as C++17. r=nss-reviewers,keeler
mozilla::pkix's ML-DSA support uses std::optional. Firefox already builds
NSS as C++17 or later.
gyp can only pass the language standard to MSVC and clang-cl for whole
targets, so the C++-only mozpkix targets select it, and libssl's C++ code
avoids the headers that need it: FindSubjectPublicKeyInfo is now declared
in pkix.h rather than pkixutil.h.
Differential Revision: https://phabricator.services.mozilla.com/D337326
Files Modified:
- coreconf/WIN32.mk
- coreconf/command.mk
- coreconf/config.gypi
- cpputil/Makefile
- gtests/common/gtest.mk
- gtests/nss_bogo_shim/Makefile
- lib/mozpkix/include/pkix/pkix.h
- lib/mozpkix/include/pkix/pkixutil.h
- lib/mozpkix/lib/pkixcert.cpp
- lib/mozpkix/mozpkix.gyp
- lib/ssl/mozpkixwrappers.cpp
b221234646f9452173f43c4f686621df66318729 by John Schanck <jschanck@mozilla.com>
https://github.com/mozilla/nss/commit/b221234646f9452173f43c4f686621df66318729
Authored: 2026-11-12 21:02:31 +0000
Committed: 2026-11-12 21:02:31 +0000
Bug 2086776 - fix error code for zero-length and wrong-length signatures. r=nss-reviewers,aweine
Differential Revision: https://phabricator.services.mozilla.com/D337744
Files Modified:
- gtests/pk11_gtest/pk11_ecdsa_unittest.cc
- gtests/pk11_gtest/pk11_eddsa_unittest.cc
- gtests/pk11_gtest/pk11_rsapkcs1_unittest.cc
- gtests/pk11_gtest/pk11_rsapss_unittest.cc
- gtests/pk11_gtest/pk11_signature_test.h
- lib/freebl/ec.c
- lib/softoken/pkcs11c.c
380ba90c7a12e7dd4cb74ed3872f0f91599d2eb4 by Dana Keeler <dkeeler@mozilla.com>
https://github.com/mozilla/nss/commit/380ba90c7a12e7dd4cb74ed3872f0f91599d2eb4
Authored: 2026-11-12 20:28:41 +0000
Committed: 2026-11-12 20:28:41 +0000
Bug 2087030 - leave a certificate's ID empty if its SPKI can't be decoded r=nss-reviewers,rrelyea
Differential Revision: https://phabricator.services.mozilla.com/D338453
Files Modified:
- gtests/certdb_gtest/decode_certs_unittest.cc
- lib/certdb/stanpcertdb.c
- lib/pk11wrap/pk11cert.c
- lib/pki/certificate.c
- lib/pki/pki3hack.c
- lib/pki/pkim.h
| Assignee | ||
Comment 2•17 days ago
|
||
| KhNzKzgcSE-DO_GPPlVPKQ | ||
I've submitted a try run for this commit: https://treeherder.mozilla.org/jobs?repo=try&revision=b300f6c61ff05c806b7d97f8b4d445fd303904f8
| Assignee | ||
Comment 3•17 days ago
|
||
Updated•17 days ago
|
| Assignee | ||
Comment 5•16 days ago
|
||
| IlRCMRzLT428jTGZWvSHhA | ||
It looks like we experienced one or more build failures when trying to apply this
update. You will need to apply this update manually; you can replicate the patch
locally with ./mach vendor security/nss/moz.yaml --revision 6fb125cd44fa7b9e6267872b4405526f9f4ee1d8. I'm going to abandon the Phabricator patch and
let you submit a new one.
If the build failure wasn't caused by a library change, and was instead caused by
something structural in the build system please let my maintainers know in
Slack:#secinf.
I do my best to automatically add new files to the build, but some moz.build files
are complicated and you may need to fix them manually.
Updated•16 days ago
|
Updated•6 days ago
|
Description
•