public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Siddhesh Poyarekar <siddhesh@sourceware.org>
To: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>,
	libc-alpha@sourceware.org
Cc: Carlos O'Donell <carlos@redhat.com>, Arjun Shankar <arjun@redhat.com>
Subject: Re: [committed 2/2] tunables: Terminate if end of input is reached (CVE-2023-4911)
Date: Wed, 4 Oct 2023 08:34:33 -0400	[thread overview]
Message-ID: <faa977e6-b00b-fcb4-0895-86d41bec9df1@sourceware.org> (raw)
In-Reply-To: <eb391712-35f6-4007-85c5-5624127b37b6@linaro.org>

On 2023-10-04 08:20, Adhemerval Zanella Netto wrote:
> I think it would be best to avoid changing AT_SECURE binaries semantic
> through tunables or even environment setting (/etc/suid-debug).  It
> means adding back GLIBC_TUNABLES to unsecvars (so even non AT_SECURE
> binaries won't see GLIBC_TUNABLES), do not process GLIBC_TUNABLES for
> AT_SECURE (including malloc mcheck), and dropping any ill-formed
> GLIBC_TUNABLES strings (so first parse and only apply well-formatted
> ones).

I started that process with this patchset[1] that's probably the most 
contentious (or maybe not) issue.  If we get consensus on that, we can 
move to drop GLIBC_TUNABLES support completely for AT_SECURE in 2.39.

> This would allow to just remove the tunables_strdup altogether,
> simplifying the code a lot.  It also means that any security tunable
> (such as the glibc.mem.tagging) would also stop appling to AT_SECURE,
> but I think we should stopping giving users to change secure binares
> semantics even in this way.

We won't get to drop tunables_strdup; it's still needed to make a copy 
to delimit tunable values.  We can drop all the twiddling under the 
__libc_enable_secure though.

> And I don't think we should make this changes iff we have a a trusted
> system-wide tunable.

Ack, I can live with that.

Thanks,
Sid

[1] https://patchwork.sourceware.org/project/glibc/list/?series=25312

      reply	other threads:[~2023-10-04 12:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-03 17:08 [committed] CVE-2023-4911 Siddhesh Poyarekar
2023-10-03 17:08 ` [committed 1/2] Propagate GLIBC_TUNABLES in setxid binaries Siddhesh Poyarekar
2023-10-03 17:08 ` [committed 2/2] tunables: Terminate if end of input is reached (CVE-2023-4911) Siddhesh Poyarekar
2023-10-03 18:07   ` Adhemerval Zanella Netto
2023-10-03 18:16     ` Siddhesh Poyarekar
2023-10-04 12:20       ` Adhemerval Zanella Netto
2023-10-04 12:34         ` Siddhesh Poyarekar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=faa977e6-b00b-fcb4-0895-86d41bec9df1@sourceware.org \
    --to=siddhesh@sourceware.org \
    --cc=adhemerval.zanella@linaro.org \
    --cc=arjun@redhat.com \
    --cc=carlos@redhat.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).