CVE-2010-2798: Null Pointer Dereference

Published Aug 2, 2010
·
Updated

Description of problem: The problem was in the way the gfs2 directory code was trying to re-use sentinel directory entries.

In the failing case, gfs2's rename function was renaming a file to another name that had the same non-trivial length. The file being renamed happened to be the first directory entry on the leaf block.

First, the rename code (gfs2rename in opsinode.c) found the original directory entry and decided it could do its job by simply replacing the directory entry with another. Therefore it determined correctly that no block allocations were needed.

Next, the rename code deleted the old directory entry prior to replacing it with the new name. Therefore, the soon-to-be replaced directory entry was temporarily made into a directory entry "sentinel" or a place holder at the start of a leaf block.

Lastly, it went to re-add the replacement directory entry in that leaf block. However, when gfs2direntfindspace was looking for space in the leaf block, it used the wrong value for the sentinel. That threw off its calculations so later it decides it can't really re-use the sentinel and therefore must allocate a new leaf block. But because it previously decided to re-use the directory entry, it didn't waste the time to grab a new block allocation for the inode. Therefore, the inode's ialloc pointer was still NULL and it crashes trying to reference it.

In the case of sentinel directory entries, the entire dirent is reused, not just the "free space" portion of it, and therefore the function gfs2direntfindspace should use the value 0 rather than GFS2DIRENTSIZE(0) for the actual dirent size.

Fixing this calculation enables the reproducer programs to work properly.

Other sources

The gfs2direntfindspace function in fs/gfs2/dir.c in the Linux kernel before 2.6.35 uses an incorrect size value in calculations associated with sentinel directory entries, which allows local users to cause a denial of service (NULL pointer dereference and panic) and possibly have unspecified other impact by renaming a file in a GFS2 filesystem, related to the gfs2rename function in fs/gfs2/opsinode.c.

Launchpad

Affected Software

37 affected components
debian/linux-2.6
Linux Linux kernel<2.6.35
VMware ESX=4.1
VMware ESX=4.0
Canonical Ubuntu Linux=10.10
Canonical Ubuntu Linux=9.04
Canonical Ubuntu Linux=9.10
Canonical Ubuntu Linux=10.04
Canonical Ubuntu Linux=8.04
Canonical Ubuntu Linux=6.06
Debian Debian Linux=5.0
Avaya Aura System Manager=6.0
Avaya Aura System Manager=5.2
Avaya Aura Communication Manager=5.2
Avaya Voice Portal=5.1
Avaya Voice Portal=5.1-sp1
Avaya Voice Portal=5.0
Avaya Aura System Platform=1.1
Avaya Aura System Platform=6.0
Avaya Aura System Platform=6.0-sp1
Avaya Aura System Manager=6.1
Avaya Aura System Manager=6.1.1
Avaya Aura Session Manager=1.1
Avaya Aura Session Manager=5.2
Avaya Aura Session Manager=6.0
Avaya Aura Presence Services=6.1
Avaya Aura Presence Services=6.1.1
Avaya Aura Presence Services=6.0
Avaya Iq=5.1
Avaya Iq=5.0
openSUSE openSUSE=11.1
SUSE SUSE Linux Enterprise Server=11-sp1
SUSE SUSE Linux Enterprise Desktop=11-sp1
SUSE SUSE Linux Enterprise Server=11
SUSE Linux Enterprise High Availability Extension=11-sp1
SUSE SUSE Linux Enterprise Desktop=11
SUSE Linux Enterprise High Availability Extension=11

Event History

Aug 2, 2010
Data Sourced
via Red Hat·03:03 AM
DescriptionSeverityAffected Software
Sep 8, 2010
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
Description
Jan 11, 2024
Data Sourced
via Launchpad·09:51 PM
Description
Sep 19, 2024
Data Sourced
via Ubuntu·10:39 PM
RemedyDescriptionSeverityAffected Software
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-2010-2798?

CVE-2010-2798 has a medium severity level, as it can lead to directory corruption or unexpected behaviors.

2

How do I fix CVE-2010-2798?

To fix CVE-2010-2798, update to a patched version of the affected Linux kernel or operating system.

3

What systems are affected by CVE-2010-2798?

CVE-2010-2798 affects various distributions including specific versions of Debian, Ubuntu, and VMware ESX.

4

What type of vulnerability is CVE-2010-2798?

CVE-2010-2798 is a directory handling vulnerability in the gfs2 file system.

5

When was CVE-2010-2798 disclosed?

CVE-2010-2798 was disclosed in 2010.

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