Closed Bug 2078356 Opened 1 month ago Closed 1 month ago

Update NSS to new version f96edd30a0ed38bb955bbe7a0927ee2780afd2be from 2026-10-05 17:10:55

Categories

(Core :: Security: PSM, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: update-bot, Assigned: jschanck)

References

Details

(Whiteboard: [3pl-filed][task_id: cpmHC753QCi4-onh4sL9yQ])

Attachments

(1 external file)

This update covers 8 commits. Here are the overall diff statistics, and then the commit information.


security/nss/cpputil/freebl_scoped_ptrs.h | 3 +
security/nss/gtests/cryptohi_gtest/cryptohi_mldsa_unittest.cc | 68 +
security/nss/gtests/cryptohi_gtest/cryptohi_unittest.cc | 102 +
security/nss/gtests/freebl_gtest/aes_ctr_unittest.cc | 244 ++
security/nss/gtests/freebl_gtest/freebl_gtest.gyp | 1 +
security/nss/gtests/freebl_gtest/manifest.mn | 1 +
security/nss/gtests/smime_gtest/smime_unittest.cc | 155 +
security/nss/lib/cryptohi/seckey.c | 41 +-
security/nss/lib/cryptohi/secvfy.c | 9 +
security/nss/lib/freebl/ctr.c | 142 +-
security/nss/lib/freebl/ctr.h | 7 -
security/nss/lib/freebl/intel-aes-x64-masm.asm | 210 --
security/nss/lib/freebl/intel-aes-x86-masm.asm | 197 -
security/nss/lib/freebl/intel-aes.h | 23 -
security/nss/lib/freebl/rijndael.c | 13 +-
security/nss/lib/pkcs12/p12d.c | 5 +-
security/nss/lib/pkcs7/p7decode.c | 18 +-
security/nss/lib/pki/cryptocontext.c | 522 -----
security/nss/lib/pki/nsspki.h | 1004 ----------
security/nss/lib/pki/pki.h | 5 -
security/nss/lib/pki/pki3hack.c | 60 -
security/nss/lib/pki/pki3hack.h | 41 -
security/nss/lib/pki/pkim.h | 8 -
security/nss/lib/pki/tdcache.c | 25 -
security/nss/lib/pki/trustdomain.c | 479 ----
security/nss/lib/smime/cmsauthenvdata.c | 1 +
security/nss/lib/smime/cmscinfo.c | 1 +
security/nss/lib/smime/cmsenvdata.c | 1 +
security/nss/lib/smime/cmsrecinfo.c | 8 +-
security/nss/lib/smime/cmssigdata.c | 7 +-
security/nss/lib/smime/cmssiginfo.c | 8 +-
security/nss/moz.yaml | 4 +-
32 files changed, 710 insertions(+), 2703 deletions(-)


f96edd30a0ed38bb955bbe7a0927ee2780afd2be by John Schanck <jschanck@mozilla.com>

https://github.com/mozilla/nss/commit/f96edd30a0ed38bb955bbe7a0927ee2780afd2be
Authored: 2026-10-05 17:10:55 +0000
Committed: 2026-10-05 17:10:55 +0000

Bug 2069886 - remove Windows-only AES-CTR implementation. r=nss-reviewers,keeler

Differential Revision: https://phabricator.services.mozilla.com/D326273

Files Added:

  • gtests/freebl_gtest/aes_ctr_unittest.cc

Files Modified:

  • cpputil/freebl_scoped_ptrs.h
  • gtests/freebl_gtest/freebl_gtest.gyp
  • gtests/freebl_gtest/manifest.mn
  • lib/freebl/ctr.c
  • lib/freebl/ctr.h
  • lib/freebl/intel-aes-x64-masm.asm
  • lib/freebl/intel-aes-x86-masm.asm
  • lib/freebl/intel-aes.h
  • lib/freebl/rijndael.c

8571d2bf95b5003535a7ecf6b1e27ef0102aaeeb by John Schanck <jschanck@mozilla.com>

https://github.com/mozilla/nss/commit/8571d2bf95b5003535a7ecf6b1e27ef0102aaeeb
Authored: 2026-10-01 18:13:34 +0000
Committed: 2026-10-01 18:13:34 +0000

Bug 2069887 - improve algorithm policy enforcement for ML-DSA. r=nss-reviewers,djackson

Differential Revision: https://phabricator.services.mozilla.com/D325976

Files Modified:

  • gtests/cryptohi_gtest/cryptohi_mldsa_unittest.cc
  • lib/cryptohi/secvfy.c

8b91462dbeac7bc11291a6e408ee1fb1a974cc8a by John Schanck <jschanck@mozilla.com>

https://github.com/mozilla/nss/commit/8b91462dbeac7bc11291a6e408ee1fb1a974cc8a
Authored: 2026-10-01 18:11:40 +0000
Committed: 2026-10-01 18:11:40 +0000

Bug 2064512 - reject non-RFC 8410 curve OIDs when encoding an X25519 or Ed25519 SubjectPublicKeyInfo. r=djackson

seckey_CreateSubjectPublicKeyInfo_helper used the curve OID from
DEREncodedParams directly as the SubjectPublicKeyInfo AlgorithmIdentifier for
edKey and ecMontKey. That is only correct for the RFC 8410 OIDs, id-X25519
(1.3.101.110) and id-Ed25519 (1.3.101.112).

Differential Revision: https://phabricator.services.mozilla.com/D319610

Files Modified:

  • gtests/cryptohi_gtest/cryptohi_unittest.cc
  • lib/cryptohi/seckey.c

34e6d79bc47391dfec37e882ce681323771b5444 by Dennis Jackson <djackson@mozilla.com>

https://github.com/mozilla/nss/commit/34e6d79bc47391dfec37e882ce681323771b5444
Authored: 2026-10-01 14:50:48 +0000
Committed: 2026-10-01 14:50:48 +0000

Bug 2076212 - Clear freed CMS members in the destructors r=nss-reviewers,jschanck

The CMS destructors NULL every refcounted member and array they free so a
second destroy through any exported sub-destructor cannot double free.

Differential Revision: https://phabricator.services.mozilla.com/D329624

Files Modified:

  • gtests/smime_gtest/smime_unittest.cc
  • lib/smime/cmsauthenvdata.c
  • lib/smime/cmscinfo.c
  • lib/smime/cmsenvdata.c
  • lib/smime/cmsrecinfo.c
  • lib/smime/cmssigdata.c
  • lib/smime/cmssiginfo.c

573ec5ae03fa4bfedd4ce7bcce276c338f687a21 by Dennis Jackson <djackson@mozilla.com>

https://github.com/mozilla/nss/commit/573ec5ae03fa4bfedd4ce7bcce276c338f687a21
Authored: 2026-10-01 14:50:48 +0000
Committed: 2026-10-01 14:50:48 +0000

Bug 2076212 - Release the previous signer certificate when re-verifying a PKCS#7 signature r=nss-reviewers,jschanck

sec_pkcs7_verify_signature stored a fresh reference into signerinfo->cert
without releasing the one already there.

Differential Revision: https://phabricator.services.mozilla.com/D329623

Files Modified:

  • lib/pkcs7/p7decode.c

72fe9c792f1d4c781804e94fba54a94160302f6f by Dennis Jackson <djackson@mozilla.com>

https://github.com/mozilla/nss/commit/72fe9c792f1d4c781804e94fba54a94160302f6f
Authored: 2026-10-01 14:50:48 +0000
Committed: 2026-10-01 14:50:48 +0000

Bug 2076212 - Make SEC_PKCS7DecoderAbort fail the decode r=nss-reviewers,jschanck

Abort records the error on the context and tolerates an already torn-down
ASN.1 decoder, and Finish no longer returns a message whose decoding was
aborted, since SEC_ASN1DecoderFinish reports success after a decode error.

Differential Revision: https://phabricator.services.mozilla.com/D329622

Files Modified:

  • gtests/smime_gtest/smime_unittest.cc
  • lib/pkcs7/p7decode.c

b1bb1a4b7215feb69f4ae5b868353b7808d53c90 by Dennis Jackson <djackson@mozilla.com>

https://github.com/mozilla/nss/commit/b1bb1a4b7215feb69f4ae5b868353b7808d53c90
Authored: 2026-10-01 14:50:48 +0000
Committed: 2026-10-01 14:50:48 +0000

Bug 2076212 - Fail closed after an incomplete PKCS#12 decode r=nss-reviewers,jschanck

SEC_PKCS12DecoderVerify latches the context error when the PFX decoder did
not finish, so the later phases refuse half-decoded bags instead of
dereferencing NULL bag contents, and SEC_PKCS12DecoderGetCerts checks the
error flag like every other post-decode entry point.

Differential Revision: https://phabricator.services.mozilla.com/D329621

Files Modified:

  • gtests/smime_gtest/smime_unittest.cc
  • lib/pkcs12/p12d.c

a1bd42ff04195ec49ae5a17834798cd79ed66acc by Dana Keeler <dkeeler@mozilla.com>

https://github.com/mozilla/nss/commit/a1bd42ff04195ec49ae5a17834798cd79ed66acc
Authored: 2026-09-30 16:49:29 +0000
Committed: 2026-09-30 16:49:29 +0000

Bug 2076240 - remove unused NSSCryptoContext and NSSTrustDomain functions r=nss-reviewers,jschanck

Differential Revision: https://phabricator.services.mozilla.com/D329662

Files Modified:

  • lib/pki/cryptocontext.c
  • lib/pki/nsspki.h
  • lib/pki/pki.h
  • lib/pki/pki3hack.c
  • lib/pki/pki3hack.h
  • lib/pki/pkim.h
  • lib/pki/tdcache.c
  • lib/pki/trustdomain.c

Assignee: nobody → update-bot
Attachment #9653186 - Attachment description: Bug 2078356 - Update NSS to f96edd30a0ed38bb955bbe7a0927ee2780afd2be → Bug 2078356 - Update NSS to f96edd30a0ed38bb955bbe7a0927ee2780afd2be. UPGRADE_NSS_RELEASE
Status: NEW → ASSIGNED
Pushed by jschanck@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/fc183fe98673 https://hg.mozilla.org/integration/autoland/rev/329286c4b06f Update NSS to f96edd30a0ed38bb955bbe7a0927ee2780afd2be. UPGRADE_NSS_RELEASE r=jschanck

All the jobs in the try run succeeded. Like literally all of them, there weren't
even any intermittents. That is pretty surprising to me, so maybe you should double
check to make sure I didn't misinterpret things and that the correct tests ran...

Anyway, I've done all I can, so I'm passing to you to review and land the patch.
When reviewing, please note that this is external code, which needs a full and
careful inspection - not a rubberstamp.

Assignee: update-bot → jschanck
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
QA Whiteboard: [qa-triage-done-c160/b159]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: