Closed Bug 2019233 Opened 9 months ago Closed 7 months ago

Implement ASan redzones to detect intra-arena OOB access

Categories

(NSPR :: NSPR, enhancement)

enhancement

Tracking

(firefox-esr115 wontfix, firefox-esr140 wontfix, firefox150 wontfix, firefox151 wontfix, firefox152 fixed)

RESOLVED FIXED
Tracking Status
firefox-esr115 --- wontfix
firefox-esr140 --- wontfix
firefox150 --- wontfix
firefox151 --- wontfix
firefox152 --- fixed

People

(Reporter: mdauer, Assigned: mdauer)

References

Details

(Keywords: sec-other, Whiteboard: [adv-main152-])

Attachments

(2 external files)

NSPR already uses PL_MAKE_MEM_NOACCESS , PL_MAKE_MEM_UNDEFINED and PL_MAKE_MEM_DEFINED to manually (un)poision memory inside the arena. However, there are no redzones in between allocations inside an arena.

When building with ASan, the arena allocator should insert poisoned redzones between sub-allocations, so that overflows from one sub-allocation into the next are detected. The redzones and any associated overhead should compile away to nothing in non-ASan builds.

Group: core-security → core-security-release
Assignee: nobody → mdauer
Attached file (secure) —
Whiteboard: [reminder-test 2026-04-20]
Target Milestone: --- → 4.39
Blocks: 2023572
See Also: → 2030979

11 days ago, mdauer placed a reminder on the bug using the whiteboard tag [reminder-test 2026-04-20] .

mdauer, please refer to the original comment to better understand the reason for the reminder.

Flags: needinfo?(mdauer)
Whiteboard: [reminder-test 2026-04-20]
Attached file (secure) —
Flags: needinfo?(mdauer)

@mdauer @djackson

The second patch did not yet land.
https://phabricator.services.mozilla.com/D297291

It's an NSS patch, but this is an NSPR tracking bug.
Do you want to move the revision to an NSS bug?

Flags: needinfo?(mdauer)
Flags: needinfo?(djackson)

Pushed by nkulatova@mozilla.com:
https://hg.mozilla.org/projects/nss/rev/c655ebc6b38d
Add test for intra-arena ASan redzones, r=nss-reviewers,djackson

Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED

Do you want to move the revision to an NSS bug?

Keeping it here should be fine?

Flags: needinfo?(mdauer)
Flags: needinfo?(djackson)

(In reply to Maurice Dauer [:mdauer] from comment #7)

Do you want to move the revision to an NSS bug?

Keeping it here should be fine?

Fine with me, just noticed that the commit wouldn't be tracked in an NSS bug.

QA Whiteboard: [sec] [qa-triage-done-c153/b152]
status-nss: 3.124 → ---
Whiteboard: [adv-main-152-]
Whiteboard: [adv-main-152-] → [adv-main152-]
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: