Skip to content

NSS: fix initgroups packet heap disclosure - #9036

Open
alexey-tikhonov wants to merge 1 commit into
SSSD:masterfrom
alexey-tikhonov:bz_2510309
Open

NSS: fix initgroups packet heap disclosure#9036
alexey-tikhonov wants to merge 1 commit into
SSSD:masterfrom
alexey-tikhonov:bz_2510309

Conversation

@alexey-tikhonov

@alexey-tikhonov alexey-tikhonov commented Aug 3, 2026

Copy link
Copy Markdown
Member

sss_nss_protocol_fill_initgr() pre-allocates the reply packet for all group entries in result->count, but groups may be skipped when they are non-POSIX, incomplete, or filtered by the negative cache. Shrink the packet after filling it so it contains exactly the data that was written.

Fixes: CVE-2026-68744

Assisted-By: Claude Code (Opus 4.6)

RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=2510309

@alexey-tikhonov
alexey-tikhonov marked this pull request as ready for review August 4, 2026 11:26
sss_nss_protocol_fill_initgr() pre-allocates the reply packet for all
group entries in result->count, but groups may be skipped when they are
non-POSIX, incomplete, or filtered by the negative cache.
Shrink the packet after filling it so it contains exactly the data that
was written.

:fixes: CVE-2026-68744

Assisted-By: Claude Code (Opus 4.6)

@sumit-bose sumit-bose left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

thank you for the fix, ACK.

bye,
Sumit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants