| Summary: | sshd crashes when getpwnam result is returned by libnss_systemd | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | loqs <mindrot_bugzilla> | ||||
| Component: | sshd | Assignee: | Assigned to nobody <unassigned-bugs> | ||||
| Status: | CLOSED FIXED | ||||||
| Severity: | trivial | CC: | djm, dtucker | ||||
| Priority: | P5 | ||||||
| Version: | 7.5p1 | ||||||
| Hardware: | ix86 | ||||||
| OS: | Linux | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 2782 | ||||||
| Attachments: |
|
||||||
|
Description
loqs
2017-09-14 02:19:40 AEST
Created attachment 3110 [details]
keep scrubbed copy of passwd struct
We can use the existing pwcopy() function to make a local, mutable copy and hope the system endpwent() does the right thing and scrubs the last returned passwd entry from memory.
Fix committed, this will be in OpenSSH 7.7. Close all resolved bugs after release of OpenSSH 7.7. |