CVE-2024-6126: Cockpit: authenticated user can kill any process when enabling pam_env's user_readenv option

Published Jun 18, 2024
·
Updated

A flaw was found in the cockpit package. This flaw allows an authenticated user to kill any process when enabling the pamenv's userreadenv option, which leads to a denial of service (DoS) attack.

Other sources

In the cockpit component pam-ssh-add uses a call to atoi() to convert the environment variable SSHAGENTPID to a integer. This assumes that this env variable has not been tampered with and it the env variable has been mangled this can lead to an overflow. The solution proposed is to replace it with a call to strtol() with error checking.

Red Hat

Affected Software

1 affected component
Cockpit Cockpit

Event History

Jun 18, 2024
Data Sourced
via Red Hat·02:00 PM
DescriptionSeverityAffected Software
Jul 3, 2024
CVE Published
via MITRE·02:51 PM
Data Sourced
via MITRE·02:51 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-6126?

CVE-2024-6126 is classified as a denial of service (DoS) vulnerability.

2

How do I fix CVE-2024-6126?

To mitigate CVE-2024-6126, disable the pam_env's user_readenv option in the cockpit package configuration.

3

Who is affected by CVE-2024-6126?

CVE-2024-6126 affects systems utilizing the cockpit package where pam_env's user_readenv option is enabled.

4

What type of attack vector does CVE-2024-6126 introduce?

CVE-2024-6126 allows an authenticated user to kill processes, leading to potential denial of service (DoS) scenarios.

5

When was CVE-2024-6126 discovered?

CVE-2024-6126 was identified as a flaw in the cockpit package, although an exact discovery date is not provided in the available information.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203