CVE-2011-4081: Null Pointer Dereference

Published Oct 27, 2011
·
Updated

crypto/ghash-generic.c in the Linux kernel before 3.1 allows local users to cause a denial of service (NULL pointer dereference and OOPS) or possibly have unspecified other impact by triggering a failed or missing ghashsetkey function call, followed by a (1) ghashupdate function call or (2) ghashfinal function call, as demonstrated by a write operation on an AFALG socket.

Other sources

The ghashupdate function passes a pointer to gf128mul4klle which will be NULL if ghashsetkey is not called or if the most recent call to ghashsetkey failed to allocate memory. This causes an oops. Fix this up by returning an error code in the null case.

This is trivially triggered from unprivileged userspace through the AFALG interface by simply writing to the socket without setting a key.

The ghashfinal function has a similar issue, but triggering it requires a memory allocation failure in ghashsetkey after at least one successful call to ghashupdate.

Acknowledgements:

Red Hat would like to thank Nick Bowler for reporting this issue.

Red Hat

Affected Software

2 affected components
debian/linux-2.6
Linux Linux kernel<3.1

Event History

Oct 27, 2011
Data Sourced
via Red Hat·07:44 AM
DescriptionSeverityAffected Software
May 24, 2012
CVE Published
via MITRE·11:00 PM
Data Sourced
via MITRE·11:00 PM
Description
Jan 11, 2024
Data Sourced
via Launchpad·09:58 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·12:49 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2011-4081?

CVE-2011-4081 has a severity rating that indicates it can cause a denial of service due to a NULL pointer dereference.

2

How do I fix CVE-2011-4081?

To fix CVE-2011-4081, update the Linux kernel to version 3.1 or higher.

3

Who is affected by CVE-2011-4081?

CVE-2011-4081 affects local users of the Linux kernel versions prior to 3.1.

4

What is the impact of CVE-2011-4081?

The impact of CVE-2011-4081 includes potential denial of service and runtime errors due to ghash_setkey function calls.

5

What versions of the Linux kernel are vulnerable to CVE-2011-4081?

All versions of the Linux kernel prior to 3.1 are vulnerable to CVE-2011-4081.

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