CVE-2010-4157: Integer Overflow

Published Nov 8, 2010
·
Updated

Description of problem: gdthioctlalloc() takes the size variable as an int. copyfromuser() takes the size variable as an unsigned long. gen.datalen and gen.senselen are unsigned longs. On x8664 longs are 64 bit and ints are 32 bit.

We could pass in a very large number and the allocation would truncate the size to 32 bits and allocate a small buffer. Then when we do the copyfromuser(), it would result in a memory corruption.

Reference: http://ns3.spinics.net/lists/linux-scsi/msg47361.html

Upstream: http://git.kernel.org/linus/f63ae56e4e97fb12053590e41a4fa59e7daa74a4

Other sources

Integer overflow in the iocgeneral function in drivers/scsi/gdth.c in the Linux kernel before 2.6.36.1 on 64-bit platforms allows local users to cause a denial of service (memory corruption) or possibly have unspecified other impact via a large argument in an ioctl call.

Launchpad

Affected Software

12 affected components
debian/linux-2.6
Linux Linux kernel<2.6.36.1
Fedoraproject Fedora=13
SUSE Linux Enterprise Server=10-sp3
SUSE Linux Enterprise Desktop=11-sp1
SUSE Linux Enterprise Server=11-sp1
SUSE Linux Enterprise Server=9
openSUSE openSUSE=11.2
openSUSE openSUSE=11.3
SUSE Linux Enterprise Desktop=10-sp3
SUSE Linux Enterprise Software Development Kit=10-sp3
SUSE Linux Enterprise Real Time Extension=11-sp1

Event History

Nov 8, 2010
Data Sourced
via Red Hat·09:43 PM
DescriptionSeverityAffected Software
Dec 10, 2010
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Jan 11, 2024
Data Sourced
via Launchpad·09:54 PM
Description
Sep 19, 2024
Data Sourced
via Ubuntu·10:43 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2010-4157?

CVE-2010-4157 is considered a medium severity vulnerability that can lead to denial of service or potential arbitrary code execution.

2

How do I fix CVE-2010-4157?

To fix CVE-2010-4157, you should update your kernel to a version that includes the patch addressing this vulnerability.

3

Which systems are affected by CVE-2010-4157?

CVE-2010-4157 affects multiple Linux kernel versions, particularly those prior to 2.6.36.1, and various distributions, including Debian, Fedora, and openSUSE.

4

What type of vulnerability is CVE-2010-4157?

CVE-2010-4157 is a type of integer overflow vulnerability caused by improper handling of size parameters during memory allocation.

5

Is CVE-2010-4157 actively exploited?

There have been no public reports of active exploitation of CVE-2010-4157, but it is recommended to mitigate it due to its potential impact.

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