Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 25, 2025

Backport of #120075 to release/10.0

/cc @ericstj @jozkee

Customer Impact

  • Customer reported
  • Found internally

Customer may hit an UnauthorizedAccessException when using Performance Counter or EventLog APIs. This happens when another user has created the Global\netfxperf.1.0 or Global\netfxeventlog.1.0 mutexes. This exception is impossible to predict and will be persistent when hit. The result is the opposite of the intent of the original fix. #110399

it is possible that security descriptor has an ACL for a particular account or group that is not compatible with a caller later on causing an access denied scenario.

Fix by only setting the ACL when we create the mutex.

Regression

  • Yes
  • No

Regression in .NET 10.0 from #110416

Testing

Manual repro and fix.

Risk

Low, we're just applying a condition to only set the ACL on a Mutex when we are the creator of that mutex.

@ericstj ericstj added the Servicing-consider Issue for next servicing release review label Sep 25, 2025
@artl93 artl93 added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Sep 26, 2025
@artl93 artl93 merged commit ce2a70d into release/10.0 Sep 26, 2025
93 of 95 checks passed
@jkotas jkotas deleted the backport/pr-120075-to-release/10.0 branch September 27, 2025 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants