Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241018011316.MMXaKFiJ@steffen%sdaoden.eu>
Date: Fri, 18 Oct 2024 03:13:16 +0200
From: Steffen Nurpmeso <steffen@...oden.eu>
To: oss-security@...ts.openwall.com
Subject: Re: CVE-2024-47191: Local root exploit in the
 PAM module pam_oath.so

Hello.

Matthias Gerstner wrote in
 <ZxDKuqteocmdBDNx@...co.suse.de>:
 |On Tue, Oct 15, 2024 at 10:21:35PM +0200, Solar Designer wrote:
 |> On Tue, Oct 15, 2024 at 03:17:34PM -0400, Demi Marie Obenour wrote:
 ...
 |From 345ae06e0f698bdb1e9b4529e5a882f12df04426 Mon Sep 17 00:00:00 2001
 |From: Matthias Gerstner <matthias.gerstner@...e.de>
 |Date: Wed, 16 Oct 2024 09:58:35 +0200
 |Subject: [PATCH] usersfile: fix potential security issues in PAM module
 ...
 |+static int
 |+lock_usersfile (struct usersfile_ctx *ctx)
 |+{
 |+  /*
 |+   * There exist three file locking APIs:
 |+   *
 |+   * - flock(): this would be the simplest API, but it doesn't properly \
 |support
 |+   *   network file systems like NFS, which then causes a transparent \
 |fallback
 |+   *   to fcntl() file locking.
 |+   * - fcntl using F_SETLCK & friends: this lock is not based on the \
 |open file
 |+   *   description and thus cannot be inherited to child processes, \
 |which we
 |+   *   need to do.
 |+   * - fcntl using F_OFD_SETLCK & friends: this is a Linux specific \
 |lock that

It was added to and is part of POSIX.1-2024.

 |+   *   _is_ based on the open file description. It seems like the \
 |best bet for
 |+   *   our scenario.
 ...

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.