The default bug view has changed. See this FAQ.

REGRESSION, CRLs without nextUpdate fields don't decode

RESOLVED FIXED in 3.9.3

Status

NSS
Libraries
P1
critical
RESOLVED FIXED
13 years ago
11 years ago

People

(Reporter: Nelson Bolyard (seldom reads bugmail), Assigned: Nelson Bolyard (seldom reads bugmail))

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

One of the many bugs fixed in NSS 3.9 was that NSS would previously accept 
only UTCTimes and not GeneralizedTimes in many places (in many types of PKI
SEQUENCES, like certs and CRLs).  The fix was to replace the UTCTime tag 
in most templates with a CHOICE subtemplate that allowed either form of time.

So, in CRLs, the template for the nextUpdate field changed from being an 
OPTIONAL UTCTime to being an OPTIONAL CHOICE.  The QuickDER decoder used for
CRLs has an original bug (which is not a regression in 3.9), namely that it
mishandles missing optional CHOICEs.  Apparently we never had any optional 
choice templates until 3.9.  

In any case, the combination of the new OPTIONAL CHOICE template and the 
original QuickDER bug (treats missing optional choices as errors) cause the
regression that NSS can no longer corrrectly parse CRLs that lack the 
optional nextUpdate component.  

I have a patch that fixes this, and a related patch that prevents certutil
and PP from crashing on CRLs with missing nextUpdate fields.

I would like this fix to go into NSS 3.9.3 and into NSS 3.10.

Thanks to Bill Burns who discovered that CRLs without nextUpdate fields
cannot be printed by pp.
(Assignee)

Comment 1

13 years ago
Targetting 3.9.3.  I believe Julien agrees with this.
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → 3.9.3
(Assignee)

Comment 2

13 years ago
Created attachment 160026 [details] [diff] [review]
patch v1 for trunk
(Assignee)

Comment 3

13 years ago
Comment on attachment 160026 [details] [diff] [review]
patch v1 for trunk

Julien, please review
Attachment #160026 - Flags: review?(julien.pierre.bugs)
(Assignee)

Comment 4

13 years ago
Created attachment 160027 [details] [diff] [review]
patch v1 for NSS_3_9_BRANCH

The only difference between these two patches are the line numbers 
in the diffs.  So, I won't ask for this patch to be reviewed separately.

Updated

13 years ago
Attachment #160026 - Flags: review?(julien.pierre.bugs) → review+

Comment 5

13 years ago
Good catch, Nelson. I wish our test suite had some CRL coverage. We really have
to get on it.
(Assignee)

Comment 6

13 years ago
Fix checked in on NSS 3.9 branch.

Checking in lib/util/quickder.c; new: 1.19.16.1; previous: 1.19
Checking in cmd/lib/secutil.c;   new: 1.60.2.3;  previous: 1.60.2.2
(Assignee)

Comment 7

13 years ago
Checked in on trunk

Checking in lib/util/quickder.c; new revision: 1.21; previous revision: 1.20
Checking in cmd/lib/secutil.c;   new revision: 1.66; previous revision: 1.65
Status: ASSIGNED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → FIXED
(Assignee)

Comment 8

13 years ago
nominating for firefox 1.0
Flags: blocking-aviary1.0?

Updated

13 years ago
Keywords: sun-orion3
NSS 3.9.3 is on aviary/1.7
Flags: blocking-aviary1.0?

Comment 10

13 years ago
*** Bug 231907 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.