Input: iforce - wake up after clearing IFORCE_XMIT_RUNNING flag (Linux Linux)

CVE-2022-49954
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.25 % · percentile 17 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: Input: iforce - wake up after clearing IFORCE_XMIT_RUNNING flag syzbot is reporting hung task at __input_unregister_device() [1], for iforce_close() waiting at wait_event_interruptible() with dev->mutex held is blocking input_disconnect_device() from __input_unregister_device(). It seems that the cause is simply that commit c2b27ef672992a20 ("Input: iforce - wait for command completion when closing the device") forgot to call wake_up() after clear_bit(). Fix this problem by introducing a helper that calls clear_bit() followed by wake_up_all().

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected c2b27ef672992a206e5b221b8676972dd840ffa5 < d186c65599bff0222da37b9215784ddfe39f9e1b ; affected c2b27ef672992a206e5b221b8676972dd840ffa5 < b271090eea3899399e2adcf79c9c95367d472b03 ; affected c2b27ef672992a206e5b221b8676972dd840ffa5 < df1b53bc799d58f79701c465505a206c72ad4ab8 ; affected c2b27ef672992a206e5b221b8676972dd840ffa5 < b533b9d3a0d1327cbb31c201dc8dbbf98c8bfe3c ; affected c2b27ef672992a206e5b221b8676972dd840ffa5 < 98e01215708b6d416345465c09dce2bd4868c67a
Linux · Linuxaffected 2.6.33 ; unaffected 0 < 2.6.33 ; unaffected 5.4.213 ≤ 5.4.* ; unaffected 5.10.142 ≤ 5.10.* ; unaffected 5.15.66 ≤ 5.15.* ; unaffected 5.19.8 ≤ 5.19.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD