Closed Bug 2081024 Opened 1 month ago Closed 1 month ago

Update NSS to new version 49e8830fef06c1b83d1fa5b49c4c8d96247305f1 from 2026-10-12 21:43:13

Categories

(Core :: Security: PSM, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: update-bot, Assigned: jschanck)

References

Details

(Whiteboard: [3pl-filed][task_id: NSm5EAP8TIK73asWMVbMHw])

Attachments

(1 external file)

This update covers 16 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/nss/automation/abi-check/expected-report-libnss3.so.txt | 21 -
security/nss/automation/abi-check/expected-report-libnssutil3.so.txt | 14 -
security/nss/automation/abi-check/expected-report-libsmime3.so.txt | 52 -
security/nss/automation/abi-check/expected-report-libssl3.so.txt | 31 -
security/nss/automation/abi-check/previous-nss-release | 2 +-
security/nss/fuzz/targets/smime.cc | 459 +++++++++-
security/nss/gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc | 40 +
security/nss/gtests/pk11_gtest/pk11_hpke_unittest.cc | 45 +
security/nss/gtests/smime_gtest/smime_unittest.cc | 55 +
security/nss/gtests/ssl_gtest/ssl_keyupdate_unittest.cc | 23 +
security/nss/lib/base/arena.c | 114 --
security/nss/lib/base/base.h | 138 ---
security/nss/lib/base/hash.c | 40 -
security/nss/lib/base/item.c | 27 -
security/nss/lib/base/libc.c | 27 -
security/nss/lib/base/list.c | 22 -
security/nss/lib/base/utf8.c | 222 ----
security/nss/lib/certdb/alg1485.c | 85 -
security/nss/lib/certdb/cert.h | 2 -
security/nss/lib/certdb/certdb.c | 29 +-
security/nss/lib/certdb/certi.h | 5 -
security/nss/lib/cryptohi/keyhi.h | 15 -
security/nss/lib/cryptohi/seckey.c | 150 ---
security/nss/lib/cryptohi/secsign.c | 17 -
security/nss/lib/dev/ckhelper.c | 49 -
security/nss/lib/dev/ckhelper.h | 18 -
security/nss/lib/dev/dev.h | 71 -
security/nss/lib/dev/devm.h | 12 -
security/nss/lib/dev/devslot.c | 30 -
security/nss/lib/dev/devtoken.c | 240 -----
security/nss/lib/dev/devutil.c | 39 -
security/nss/lib/nss/nss.h | 6 +-
security/nss/lib/pk11wrap/dev3hack.c | 6 -
security/nss/lib/pk11wrap/dev3hack.h | 3 -
security/nss/lib/pk11wrap/pk11cert.c | 96 --
security/nss/lib/pk11wrap/pk11cxt.c | 4 +
security/nss/lib/pk11wrap/pk11hpke.c | 6 +
security/nss/lib/pk11wrap/pk11obj.c | 42 -
security/nss/lib/pk11wrap/pk11pbe.c | 118 +--
security/nss/lib/pk11wrap/pk11priv.h | 5 -
security/nss/lib/pk11wrap/pk11util.c | 6 -
security/nss/lib/pk11wrap/secmodi.h | 4 -
security/nss/lib/pki/certificate.c | 181 ---
security/nss/lib/pki/nsspki.h | 173 ---
security/nss/lib/pki/pki.h | 12 -
security/nss/lib/pki/pki3hack.c | 25 +-
security/nss/lib/pki/pkibase.c | 26 -
security/nss/lib/pki/pkim.h | 17 -
security/nss/lib/smime/cmsarray.c | 11 +-
security/nss/lib/smime/cmssigdata.c | 22 +-
security/nss/lib/softoken/softkver.h | 6 +-
security/nss/lib/ssl/tls13con.c | 5 +-
security/nss/lib/util/nssutil.h | 6 +-
security/nss/moz.yaml | 4 +-
54 files changed, 697 insertions(+), 2181 deletions(-)


49e8830fef06c1b83d1fa5b49c4c8d96247305f1 by Dana Keeler <dkeeler@mozilla.com>

https://github.com/mozilla/nss/commit/49e8830fef06c1b83d1fa5b49c4c8d96247305f1
Authored: 2026-10-12 21:43:13 +0000
Committed: 2026-10-12 21:43:13 +0000

Bug 2072757 - use encoded serial number to look up trust in fill_CERTCertificateFields r=nss-reviewers,jschanck

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

Files Modified:

  • lib/pki/pki3hack.c

af1e8adb40975fae6e2654510d9fc497b4864e29 by John Schanck <jschanck@mozilla.com>

https://github.com/mozilla/nss/commit/af1e8adb40975fae6e2654510d9fc497b4864e29
Authored: 2026-10-12 18:36:33 +0000
Committed: 2026-10-12 18:36:33 +0000

Bug 2077359 - remove unused SEC_ASN1_MKSUB from secsign.c. r=keeler

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

Files Modified:

  • lib/cryptohi/secsign.c

9bb49a8e6b0fd910d205fc1fb34953b619d4fd3e by Dennis Jackson <djackson@mozilla.com>

https://github.com/mozilla/nss/commit/9bb49a8e6b0fd910d205fc1fb34953b619d4fd3e
Authored: 2026-10-09 11:00:14 +0000
Committed: 2026-10-09 11:00:14 +0000

Bug 1961826 - Run NSS_Shutdown at exit in SMIME fuzzer r=nss-reviewers,jschanck

Wrap NSS init in an RAII class whose destructor calls NSS_Shutdown.
Without it the global trust domain allocated by NSS_InitReadWrite leaks
at process exit and shows up under LeakSanitizer, which would noise up
OSS-Fuzz with a per-run "leaked 72 bytes" finding.

Matches the NSSDatabase pattern used by the other NSS fuzzers in
fuzz/targets/lib/base/database.h.

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

Files Modified:

  • fuzz/targets/smime.cc

f8e32e025614f2b20364a9fd3def3634c535e27b by Dennis Jackson <djackson@mozilla.com>

https://github.com/mozilla/nss/commit/f8e32e025614f2b20364a9fd3def3634c535e27b
Authored: 2026-10-09 11:00:14 +0000
Committed: 2026-10-09 11:00:14 +0000

Bug 1961826 - Add streaming decoder pass to SMIME fuzzer r=nss-reviewers,jschanck

Run each input through NSS_CMSDecoder_Start / Update (in 4 chunks) /
Finish or Cancel, in addition to the existing single-shot
NSS_CMSMessage_CreateFromDER pass. This exercises the chunked Update
path and the Cancel cleanup path in cmsdecode.c that don't fire in
single-shot decode.

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

Files Modified:

  • fuzz/targets/smime.cc

7e14727dc4d6bfff088c9f1a574b2d5b0b09f0bd by Dennis Jackson <djackson@mozilla.com>

https://github.com/mozilla/nss/commit/7e14727dc4d6bfff088c9f1a574b2d5b0b09f0bd
Authored: 2026-10-09 11:00:14 +0000
Committed: 2026-10-09 11:00:14 +0000

Bug 1961826 - Verify SignerInfos in SMIME fuzzer r=nss-reviewers,jschanck

Call NSS_CMSSignerInfo_VerifyCertificate, NSS_CMSSignerInfo_Verify (with
NULL digest/contentType, which the API explicitly accepts), and
NSS_CMSSignedData_VerifySignerInfo for each SignerInfo. Most fuzz inputs
will fail verification (test cert is self-signed and not a trust anchor),
but the calls exercise verification code paths previously at 0% coverage
in cmssiginfo.c.

Drop the TODO for re-encode via NSS_CMSDEREncode: that path calls
NSS_CMSSignerInfo_Sign on decoded SignedData, which assumes a freshly
constructed SignerInfo and asserts on already-populated algorithm
parameters. Covering cmsencode.c needs a separate fuzzer that builds
messages from scratch.

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

Files Modified:

  • fuzz/targets/smime.cc

520bcaa7cb5e90b4161afbc487a185f79c27d689 by Dennis Jackson <djackson@mozilla.com>

https://github.com/mozilla/nss/commit/520bcaa7cb5e90b4161afbc487a185f79c27d689
Authored: 2026-10-09 11:00:14 +0000
Committed: 2026-10-09 11:00:14 +0000

Bug 1961826 - Regenerate test certs for SMIME fuzzer r=nss-reviewers,jschanck

Regenerate the RSA test certificate using NSS certutil with both
digitalSignature and keyEncipherment key usage plus emailProtection EKU,
enabling the fuzzer to exercise the S/MIME signature verification path.

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

Files Modified:

  • fuzz/targets/smime.cc

1c6d12baa1ea15dc52972581677e6430bd0aa961 by Dennis Jackson <djackson@mozilla.com>

https://github.com/mozilla/nss/commit/1c6d12baa1ea15dc52972581677e6430bd0aa961
Authored: 2026-10-09 11:00:13 +0000
Committed: 2026-10-09 11:00:13 +0000

Bug 1961826 - Add EC cert for ECDH and decrypt key callback to SMIME fuzzer r=nss-reviewers,jschanck

Add a P-256 EC certificate and private key alongside the existing RSA cert
to enable fuzzing of the ECDH key agreement path in cmspubkey.c.

Add a NSSCMSGetDecryptKeyCallback that generates a random symmetric key
for any requested algorithm, enabling the decoder to exercise the full
EncryptedData decryption path in cmsencdata.c and cmscipher.c.

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

Files Modified:

  • fuzz/targets/smime.cc

79826ebb91db20d3b284bb4a846a8ed704b2db08 by Dennis Jackson <djackson@mozilla.com>

https://github.com/mozilla/nss/commit/79826ebb91db20d3b284bb4a846a8ed704b2db08
Authored: 2026-10-09 11:00:13 +0000
Committed: 2026-10-09 11:00:13 +0000

Bug 1961826 - Extend the SMIME fuzzer to cover more functions r=nss-reviewers,jschanck

Extends the S/MIME fuzzer with broader CMS API surface coverage:

  • Exercise all content types (SignedData, EnvelopedData, DigestedData,
    EncryptedData) via the content level iterator
  • Add ContentInfo accessors (GetContentTypeOID, GetContentEncAlgTag,
    GetBulkKeySize, GetChildContentInfo)
  • Add SignedData accessors (GetDigestAlgs, HasDigests, ContainsCertsOrCrls,
    ImportCerts, VerifyCertsOnly)
  • Add RecipientInfo_GetVersion for EnvelopedData recipients
  • Fix memory leak: PORT_Free results from GetSignerCommonName and
    GetSignerEmailAddress
  • Switch from NoDB_Init to NSS_InitReadWrite with a temp DB so that a test
    cert+key can be imported, unblocking PK11_FindCertAndKeyByRecipientListNew
    for envelope decryption fuzzing
  • Embed a test RSA-2048 cert+key for recipient matching
  • Guard against empty input

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

Files Modified:

  • fuzz/targets/smime.cc

e396a4fc4383375fb81d4230ed8d65bfd29f0527 by Charlotte <69423184+tqpcharlie@users.noreply.github.com>

https://github.com/mozilla/nss/commit/e396a4fc4383375fb81d4230ed8d65bfd29f0527
Authored: 2026-10-08 17:15:25 +0000
Committed: 2026-10-08 17:15:25 +0000

Bug 390374 - return NULL for deprecated PBE functions r=nss-reviewers,rrelyea,keeler

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

Files Modified:

  • lib/pk11wrap/pk11pbe.c

b9283c1e4ee232b4450d36115272af670d38ec81 by Dennis Jackson <djackson@mozilla.com>

https://github.com/mozilla/nss/commit/b9283c1e4ee232b4450d36115272af670d38ec81
Authored: 2026-10-08 09:15:28 +0000
Committed: 2026-10-08 09:15:28 +0000

Bug 2061403 - Keep sigd->digests parallel to sigd->digestAlgorithms r=nss-reviewers,keeler

NSS_CMSArray_Add cannot append a NULL element to a NULL-terminated array, so
the placeholder added by NSS_CMSSignedData_AddDigest never extended
sigd->digests and the two arrays diverged in length. Grow sigd->digests
explicitly instead; the copy loop is bounded by the algorithm count, which is
the invariant this restores.

This also drops the companion-length check added in bug 2029797. It measured
the companion with NSS_CMSArray_Count, which stops at the first NULL, so it
misfired on the NULL placeholders that NSS_CMSSignedData_SetDigests and
NSS_CMSDigestContext_FinishMultiple legitimately produce and dropped
sigd->digests from the sort, leaving the digests mismatched with their
algorithms.

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

Files Modified:

  • gtests/smime_gtest/smime_unittest.cc
  • lib/smime/cmsarray.c
  • lib/smime/cmssigdata.c

411674e536710bbb8ad0e1b256fe30ac1b85b034 by John Schanck <jschanck@mozilla.com>

https://github.com/mozilla/nss/commit/411674e536710bbb8ad0e1b256fe30ac1b85b034
Authored: 2026-10-07 19:04:52 +0000
Committed: 2026-10-07 19:04:52 +0000

Bug 2076696 - guard against integer overflow in PK11_HPKE_Seal and PK11_HPKE_Open. r=nss-reviewers,nkulatova

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

Files Modified:

  • gtests/pk11_gtest/pk11_hpke_unittest.cc
  • lib/pk11wrap/pk11hpke.c

ec7ffc51d715cfa1d588030fbed5fe545590f84f by John Schanck <jschanck@mozilla.com>

https://github.com/mozilla/nss/commit/ec7ffc51d715cfa1d588030fbed5fe545590f84f
Authored: 2026-10-07 19:04:04 +0000
Committed: 2026-10-07 19:04:04 +0000

Bug 2076037 - ensure chacha20-poly1305 tag buffer is 16 bytes in PK11_AEADOp. r=nss-reviewers,nkulatova

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

Files Modified:

  • gtests/pk11_gtest/pk11_chacha20poly1305_unittest.cc
  • lib/pk11wrap/pk11cxt.c

58d723802784c6c92d655db13fe77cf38ef5335a by Dana Keeler <dkeeler@mozilla.com>

https://github.com/mozilla/nss/commit/58d723802784c6c92d655db13fe77cf38ef5335a
Authored: 2026-10-07 17:14:55 +0000
Committed: 2026-10-07 17:14:55 +0000

Bug 2077359 - remove more unused functions from NSS r=nss-reviewers,jschanck

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

Files Modified:

  • lib/base/arena.c
  • lib/base/base.h
  • lib/base/hash.c
  • lib/base/item.c
  • lib/base/libc.c
  • lib/base/list.c
  • lib/base/utf8.c
  • lib/certdb/alg1485.c
  • lib/certdb/cert.h
  • lib/certdb/certdb.c
  • lib/certdb/certi.h
  • lib/cryptohi/keyhi.h
  • lib/cryptohi/seckey.c
  • lib/cryptohi/secsign.c
  • lib/dev/ckhelper.c
  • lib/dev/ckhelper.h
  • lib/dev/dev.h
  • lib/dev/devm.h
  • lib/dev/devslot.c
  • lib/dev/devtoken.c
  • lib/dev/devutil.c
  • lib/pk11wrap/dev3hack.c
  • lib/pk11wrap/dev3hack.h
  • lib/pk11wrap/pk11cert.c
  • lib/pk11wrap/pk11obj.c
  • lib/pk11wrap/pk11priv.h
  • lib/pk11wrap/pk11util.c
  • lib/pk11wrap/secmodi.h
  • lib/pki/certificate.c
  • lib/pki/nsspki.h
  • lib/pki/pki.h
  • lib/pki/pkibase.c
  • lib/pki/pkim.h

65b26c837ff1e4d7aa8cc928d1faf132085f3d8d by Anna <anna.weine@mozilla.com>

https://github.com/mozilla/nss/commit/65b26c837ff1e4d7aa8cc928d1faf132085f3d8d
Authored: 2026-10-07 16:13:12 +0000
Committed: 2026-10-07 16:13:12 +0000

Bug 1960284 - Don't report epoch exhaustion through FatalError r=crypto-reviewers,djackson

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

Files Modified:

  • gtests/ssl_gtest/ssl_keyupdate_unittest.cc
  • lib/ssl/tls13con.c

940706e6f85676f9d3e65b02d297b16edd788506 by Dennis Jackson <djackson@mozilla.com>

https://github.com/mozilla/nss/commit/940706e6f85676f9d3e65b02d297b16edd788506
Authored: 2026-10-06 20:04:09 +0100
Committed: 2026-10-06 20:04:09 +0100

Set version numbers to 3.132 Beta

Files Modified:

  • automation/abi-check/expected-report-libnss3.so.txt
  • automation/abi-check/expected-report-libnssutil3.so.txt
  • automation/abi-check/expected-report-libsmime3.so.txt
  • automation/abi-check/expected-report-libssl3.so.txt
  • automation/abi-check/previous-nss-release
  • lib/nss/nss.h
  • lib/softoken/softkver.h
  • lib/util/nssutil.h

58f3a68f3ee1679046241c439eb55ccd562eebb0 by Dennis Jackson <djackson@mozilla.com>

https://github.com/mozilla/nss/commit/58f3a68f3ee1679046241c439eb55ccd562eebb0
Authored: 2026-10-06 20:04:05 +0100
Committed: 2026-10-06 20:04:05 +0100

Release notes for NSS 3.131

--HG--
extra : source : 698317f4eaacea2cf2461ec9854f80ac62cdddb9

Files Added:

  • doc/src/releases/nss_3_131.md

Files Modified:

  • doc/src/releases/index.md

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: nobody → jschanck
Attachment #9657957 - Attachment description: Bug 2081024 - Update NSS to 49e8830fef06c1b83d1fa5b49c4c8d96247305f1 → Bug 2081024 - Update NSS to 49e8830fef06c1b83d1fa5b49c4c8d96247305f1. UPGRADE_NSS_RELEASE
Pushed by jschanck@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d150e12011a2 https://hg.mozilla.org/integration/autoland/rev/8f66c140d0cf Update NSS to 49e8830fef06c1b83d1fa5b49c4c8d96247305f1. UPGRADE_NSS_RELEASE r=nss-reviewers,jschanck
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
QA Whiteboard: [qa-triage-done-c161/b160]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: