From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id A67EF385840C for ; Thu, 7 Oct 2021 19:01:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A67EF385840C Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-552-yECFb3T5OKeIa3ROTLl-pg-1; Thu, 07 Oct 2021 15:01:02 -0400 X-MC-Unique: yECFb3T5OKeIa3ROTLl-pg-1 Received: by mail-qv1-f69.google.com with SMTP id p75-20020a0c90d1000000b0037efc8547d4so6526089qvp.16 for ; Thu, 07 Oct 2021 12:01:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=MeAcubZfAtNydnV0cNKfkqITfp20Y1aqjf3+YcD2y7U=; b=XLEq3K70tyr7BjnJiLSL6U17mHs70gTYYq1Zw+cods3bdZDMyxuFuf4R9z3W2PQS/t 7IvF5lYYMiWGmoeb0Q/J7rosgHr/6hUzhS6LEn/qme//p9ZJT5x2h59+Ev/Sr3AAG0vA QYe5MTiFiUGdUvIc71/+4KMGh8pDg4jLwg4CVafD5w6NqMGs2qmxOQZFuPU8AD0y3Moq PMZAIEsgm6FHkOdvey6Mpjb8g1anYA7JmU6mSGh97e6Mdd0qm+drcur2DGvNSVQLWrJj pse/IZrVfmeYSicW2j855p/4EF62loFNwZZqWBDt5p0+tF3cdp/x/hBlTo2n2OMAp40u zCsQ== X-Gm-Message-State: AOAM532fyrxxROvLOHJqSIIXDfDVWfSkx4cXVqnRIzXzN57PlSbGUbWY m0rZSdJBO25q5pxe5OVQ3It3YOOaaeR18ZdtXCKwUo0azf6DsbUT05ZL3F1qgGSRdNSPjoKsX8u Dn9YNXtiG9Ddy3Hb9cuY= X-Received: by 2002:a05:622a:1212:: with SMTP id y18mr6975151qtx.395.1633633261845; Thu, 07 Oct 2021 12:01:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ6xHf0JGMcZ8qpdP/59lUVJUyApxW1XuqJNyxRyEgj0YNNLy8McsmSbsw3B+93JoSz4tFHQ== X-Received: by 2002:a05:622a:1212:: with SMTP id y18mr6975110qtx.395.1633633261491; Thu, 07 Oct 2021 12:01:01 -0700 (PDT) Received: from [192.168.1.16] (198-84-214-74.cpe.teksavvy.com. [198.84.214.74]) by smtp.gmail.com with ESMTPSA id h14sm190086qtx.69.2021.10.07.12.01.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Oct 2021 12:01:00 -0700 (PDT) Message-ID: <818412f0-e913-7873-7158-a876d26a1ff4@redhat.com> Date: Thu, 7 Oct 2021 15:00:59 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: My dynamic loader refuses to load libQt5Core because of the ABI tag note To: noloader@gmail.com, =?UTF-8?Q?Krzysztof_=c5=bbelechowski?= Cc: "libc-help@sourceware.org" References: From: Carlos O'Donell Organization: Red Hat In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GB_TO_NAME_FREEMAIL, KAM_SHORT, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2021 19:01:18 -0000 On 10/7/21 14:53, Jeffrey Walton via Libc-help wrote: > On Thu, Oct 7, 2021 at 2:47 PM Krzysztof Żelechowski via Libc-help > wrote: >> >> /usr/lib/YaST2/bin/y2controlcenter >> /usr/lib/YaST2/bin/y2controlcenter: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory >> uname -r >> 4.4.0-19041-Microsoft >> ldd /usr/lib64/libQt5Widgets.so.5 >> libQt5Core.so.5 => not found >> /usr/lib64/libQt5Core.so.5 >> This is the QtCore library version Qt 5.12.7 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0) >> Copyright (C) 2016 The Qt Company Ltd. >> Contact: http://www.qt.io/licensing/ >> >> Installation prefix: /usr >> Library path: lib64 >> Include path: include/qt5 >> Processor features: sse2[required] sse3 ssse3 fma sse4.1 sse4.2 movbe popcnt aes avx f16c rdrnd bmi avx2 bmi2 rdseed sha >> readelf -n /usr/lib64/libQt5Core.so.5 >> Displaying notes found in: .note.ABI-tag >> Owner Data size Description >> GNU 0x00000010 NT_GNU_ABI_TAG (ABI version tag) >> OS: Linux, ABI: 3.17.0 >> objcopy -R .note.ABI-tag /usr/lib64/libQt5Core.so.5 /tmp/libQt5Core.so.5 >> LD_LIBRARY_PATH=/tmp /usr/lib/YaST2/bin/y2controlcenter > > Off-topic, this is probably CVE worthy: > > LD_LIBRARY_PATH=/tmp Why is this CVE worthy? The user copied a library to /tmp, stripping a section, and then restarted the binary with an LD_LIBRARY_PATH to use the temporary copy of the library with the changes. LD_LIBRARY_PATH is used *after* DT_RPATH (if DT_RUNPATH is not present), and so has precedence as expected, and is controlled by the user. -- Cheers, Carlos.