sshd in chroot has regression with glibc 2.34

Bug #1944621 reported by William Wilson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openssh (Ubuntu)
Fix Released
Medium
Steve Langasek

Bug Description

A regression to sshd running in a chroot exists under the following conditions:

1) sshd was built with glibc 2.34
2) sshd is running with a kernel that does not define the close_range syscall (kernel <= 5.8)
3) /proc/self/fd does not exist in the chroot

The glibc 2.34 implementation of fallback_closefrom fails if /proc/self/fd is not present, which is a valid sshd use case.

Changed in openssh (Ubuntu):
assignee: nobody → William Wilson (jawn-smith)
Revision history for this message
William Wilson (jawn-smith) wrote :
Revision history for this message
William Wilson (jawn-smith) wrote :
Changed in openssh (Ubuntu):
status: New → In Progress
assignee: William Wilson (jawn-smith) → nobody
status: In Progress → Confirmed
Mathew Hodson (mhodson)
Changed in openssh (Ubuntu):
importance: Undecided → Medium
Revision history for this message
William Wilson (jawn-smith) wrote :

This patch moves the configuration option to the appropriate section of d/rules and adds a reference to this bug report.

Revision history for this message
Steve Langasek (vorlon) wrote :

uploaded.

Changed in openssh (Ubuntu):
assignee: nobody → Steve Langasek (vorlon)
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openssh - 1:8.4p1-6ubuntu2

---------------
openssh (1:8.4p1-6ubuntu2) impish; urgency=medium

  * Configure with ac_cv_func_closefrom=no to avoid an incompatibility
    with glibc 2.34's fallback_closefrom function (LP: #1944621)

 -- William 'jawn-smith' Wilson <email address hidden> Tue, 21 Sep 2021 22:08:39 +0000

Changed in openssh (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.