Advisory Published
Updated

REDHAT-BUG-2319212

First published: Wed Oct 16 2024(Updated: )

A vulnerability was found in PAM. The secret is in memory, while the attacker can trigger the victim program to execute by sending characters to its stdin. In-between, they then train the branch predictor to speculatively execute a ROP chain. Moreover, when stdin is a pipe or file, the FILE IO buffer malloc'd will receive the just-freed IO buffer that was used to read /etc/shadow, so it is also possible to have the secret conveniently available in the uninitialized memory of the stdin's FILE buf.=20 This makes several registers reference the /etc/shadow contents during the read-loop of the fgets call that the polkit agent uses in the pam conversation.=20 The attack is difficult to pull of: - Attacker needs to find a gadget chain in the mapped-in executable memory of the victim - Attacker needs to trigger TLB entries to be prefetched to win the race and fit the transient operations in the misspeculation window. - Attacker needs to tweak the attack to break ASLR. This they also can do using Spectre as well.

Affected SoftwareAffected VersionHow to fix
Linux-PAM

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-2319212?

    The severity of REDHAT-BUG-2319212 is classified as critical due to its potential for remote code execution.

  • How do I fix REDHAT-BUG-2319212?

    To fix REDHAT-BUG-2319212, you should apply the latest security patches provided by Red Hat for the affected PAM version.

  • What software is affected by REDHAT-BUG-2319212?

    REDHAT-BUG-2319212 affects the Linux-PAM subsystem.

  • Can REDHAT-BUG-2319212 be exploited remotely?

    Yes, REDHAT-BUG-2319212 can be exploited remotely, allowing attackers to execute arbitrary code.

  • What are the potential risks of REDHAT-BUG-2319212?

    The potential risks of REDHAT-BUG-2319212 include unauthorized access and control over the system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203