TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ldd /usr/sbin/sshd – Alpine vs. Ubuntu for exploitability of CVE-2024-3094

10 点作者 juliusdavies大约 1 年前

3 条评论

olix0r大约 1 年前
&gt; Which feels safer to you?<p>“Feels” being the operative word… alpine is statically linking all of the same libraries, you’re just not able to see them via LDD.
评论 #39899168 未加载
selfisekai大约 1 年前
as an Alpine contributor: while in this case it&#x27;s true (sshd linking to libsystemd in Ubuntu is a result of a patch applied by Debian), `ldd` is not a good indicator for this. it does not say whether these dependencies are not there or get vendored and statically linked instead.<p>in other packages, we&#x27;ve sometimes specifically put work into making the ldd output <i>longer</i>, because a dependency not being statically compiled into the binaries means that we can effectively ship updates to it. as of now, running ldd on our binary of chromium returns 141 lines of output, or 157 for electron. when CVE-2023-4863 happened, we just quickly shipped a fix to libwebp, and that was the fix for our chromium and electron packages as well. a typical electron app you download (outside alpine repos) ships its own copy of electron with all these dependencies inside. ldd on that binary will output just 2 lines. it doesn&#x27;t mean that it doesn&#x27;t use all these dependencies, it means a much longer dependency chain in which your Electron chat app&#x27;s developer might not realize they&#x27;re vulnerable for 3 days until someone tells them, or &quot;beta test&quot; the update for half a month (both real examples from real chat apps)
kevincox大约 1 年前
A good time for a reminder that you shouldn&#x27;t `ldd` untrusted executables. It basically works by executing them with some special flags that the linker picks up which causes it to print the report. If the binary is nefarious it can hijack this and run whatever it wants.<p><a href="https:&#x2F;&#x2F;sourceware.org&#x2F;git&#x2F;?p=glibc.git;a=blob;f=elf&#x2F;ldd.bash.in;h=d6b640df666c5e2d064175c31afa41eb5e63aa3d;hb=a0698a5e92ceeed3409d28623b1d599da6bc887d#l116" rel="nofollow">https:&#x2F;&#x2F;sourceware.org&#x2F;git&#x2F;?p=glibc.git;a=blob;f=elf&#x2F;ldd.bas...</a>