Skip to main content
Network Thinking Solutions Logo

CVE-2021-47334

In the Linux kernel, the following vulnerability has been resolved: misc/libmasm/module: Fix two use after free in ibmasm_init_one In ibmasm_init_one, it calls ibmasm_init_remote_input_dev().

All CVEs
CVE-2021-47334Published 5/21/2024

In the Linux kernel, the following vulnerability has been resolved: misc/libmasm/module: Fix two use after free in ibmasm_init_one In ibmasm_init_one, it calls ibmasm_init_remote_input_dev().

Vendor advisory
CVSS7.8High

Overview

In the Linux kernel, the following vulnerability has been resolved: misc/libmasm/module: Fix two use after free in ibmasm_init_one In ibmasm_init_one, it calls ibmasm_init_remote_input_dev(). Inside ibmasm_init_remote_input_dev, mouse_dev and keybd_dev are allocated by input_allocate_device(), and assigned to sp->remote.mouse_dev and sp->remote.keybd_dev respectively. In the err_free_devices error branch of ibmasm_init_one, mouse_dev and keybd_dev are freed by input_free_device(), and return error. Then the execution runs into error_send_message error branch of ibmasm_init_one, where ibmasm_free_remote_input_dev(sp) is called to unregister the freed sp->remote.mouse_dev and sp->remote.keybd_dev. My patch add a "error_init_remote" label to handle the error of ibmasm_init_remote_input_dev(), to avoid the uaf bugs.

Published
5/21/2024
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
< 4.4.276

Verify advisory

Source
linux kernel
linux
≥ 4.5, < 4.9.276

Verify advisory

Source
linux kernel
linux
≥ 4.10, < 4.14.240

Verify advisory

Source
linux kernel
linux
≥ 4.15, < 4.19.198

Verify advisory

Source
linux kernel
linux
≥ 4.20, < 5.4.134

Verify advisory

Source
linux kernel
linux
≥ 5.5, < 5.10.52

Verify advisory

Source
linux kernel
linux
≥ 5.11, < 5.12.19

Verify advisory

Source
linux kernel
linux
≥ 5.13, < 5.13.4

Verify advisory

Source
Linux
Linux
≥ 736ce43295682d060f2b93624b4a339f9af6aab1, < 1512e7dc5eb08b7d92a12e2bfcd9cb8c4a1ec069

Verify advisory

Source
Linux
Linux
≥ 736ce43295682d060f2b93624b4a339f9af6aab1, < 29ba8e2ba89ee2862a26d91204dd5fe77ceee25a

Verify advisory

Source
Linux
Linux
≥ 736ce43295682d060f2b93624b4a339f9af6aab1, < 5b06ca113bf197aab2ab61288f42506e0049fbab

Verify advisory

Source
Linux
Linux
≥ 736ce43295682d060f2b93624b4a339f9af6aab1, < 481a76d4749ee3a27f902ba213fdcbb4bb39720e

Verify advisory

Source
Linux
Linux
≥ 736ce43295682d060f2b93624b4a339f9af6aab1, < 38660031e80eaa6cc9370b031c180612f414b00d

Verify advisory

Source
Linux
Linux
≥ 736ce43295682d060f2b93624b4a339f9af6aab1, < b9c87ce3bc6331f82811a8cf8e930423c22523a3

Verify advisory

Source
Linux
Linux
≥ 736ce43295682d060f2b93624b4a339f9af6aab1, < ef1067d2baa847d53c9988510d99fb494de4d12c

Verify advisory

Source
Linux
Linux
≥ 736ce43295682d060f2b93624b4a339f9af6aab1, < a7268e8a227d5a4f0bd1584f556246b0224ab274

Verify advisory

Source
Linux
Linux
≥ 736ce43295682d060f2b93624b4a339f9af6aab1, < 7272b591c4cb9327c43443f67b8fbae7657dd9ae

Verify advisory

Source
Linux
Linux
2.6.16

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.