-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AspnetCore application tries to load Microsoft.DiaSymReader.Native.amd64.dll at runtime on centos linux #92278
Comments
Tagging subscribers to this area: @tommcdon Issue DetailsDescriptionI ran my aspnet core application on centos linux using the LL_DEBUG=libs command and found that it was unsuccessfully trying to load the Microsoft.DiaSymReader.Native.amd64.dll library. This does not lead to any visible consequences, but I would like to understand the reasons for this behavior. Can someone tell me what is the reason for this behavior and how to avoid it? Thanks in advance for any answer. Reproduction StepsBuild self contained asp.net core app, run it on linux centos by LL_DEBUG=libs ./my-app Expected behaviorAn application does not try to load Microsoft.DiaSymReader.Native.amd64.dll on linux Actual behaviorApplication tries to load Microsoft.DiaSymReader.Native.amd64.dll on linux Regression?No response Known WorkaroundsNo response Configuration.net 7 Other informationNo response
|
@neyromant thanks for reporting this issue! I completely agree we do not need to probe for runtime/src/coreclr/vm/ceeload.cpp Lines 2262 to 2273 in 034d27f
And if runtime/src/coreclr/vm/debugdebugger.cpp Lines 570 to 592 in 034d27f
I feel we could #ifdef this code out on Linux as we do not support Windows PDB's on Linux. Feel free to open a PR for review otherwise we will leave it on the backlog for .NET 9. |
@tommcdon thanks for you answer! I made a draft pull request. Could you take a look to see if I understood your idea correctly? |
Fixed by #92492 |
Backports require a strong justification. Why is this change important for you? |
@jkotas I'm concerned that it could be a potential local privilege escalation vulnerability via shared object hijaking. |
This case is “Scenario 2: Malicious binary planted in an untrusted application directory.” from https://msrc.microsoft.com/blog/2018/04/triaging-a-dll-planting-vulnerability/ . According to this guidance, a DLL planting issue that falls into this category is treated as Defense-in-Depth issue that will be considered for updates in future versions only. |
Description
I ran my aspnet core application on centos linux using the LL_DEBUG=libs command and found that it was unsuccessfully trying to load the Microsoft.DiaSymReader.Native.amd64.dll library. This does not lead to any visible consequences, but I would like to understand the reasons for this behavior.
After all, Microsoft.DiaSymReader.Native.amd64.dll is a windows-only library
Can someone tell me what is the reason for this behavior and how to avoid it?
Thanks in advance for any answer.
Reproduction Steps
Build self contained asp.net core app, run it on linux centos by LL_DEBUG=libs ./my-app
Expected behavior
An application does not try to load Microsoft.DiaSymReader.Native.amd64.dll on linux
Actual behavior
Application tries to load Microsoft.DiaSymReader.Native.amd64.dll on linux
Regression?
No response
Known Workarounds
No response
Configuration
.net 7
centos 9
x64
Other information
No response
The text was updated successfully, but these errors were encountered: