Linux
RDMA/core: fix refcount bug in iwpm_get_nlmsg_request()
In the Linux kernel, the following vulnerability has been resolved: RDMA/core: fix refcount bug in iwpm_get_nlmsg_request() iwpm_get_nlmsg_request() initializes refcount _after_ list_add_tail() making it accessible to global list where another CPU can kref_get() on nlmsg_request causing a refcount "addition on 0" bug. Fix this by initializing kref _before_ list_add_tail() so refcount for nlmsg_request can be incremented/decremented normally. In addition, also initialize every field before list_add_tail().
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 30dc5e63d6a5ad24894b5512d10b228d73645a44, < 52c13c63bb3662c108244e7447055e30bf40244e
- >= 30dc5e63d6a5ad24894b5512d10b228d73645a44, < 8a91609032d47e77bcb37bc8f6e88d89340d2709
- >= 30dc5e63d6a5ad24894b5512d10b228d73645a44, < ce8a379598bd4058081416abea4279fd05a95374
- >= 30dc5e63d6a5ad24894b5512d10b228d73645a44, < 2fbac8a56004b6ce54fbfe845d4b25da6e0b55e8
- >= 30dc5e63d6a5ad24894b5512d10b228d73645a44, < 88e429a4e9bac3d2138011c5ca06254331f2587f
- >= 30dc5e63d6a5ad24894b5512d10b228d73645a44, < e15eb536be4f646ce683d2867572b2200be877f7
- >= 30dc5e63d6a5ad24894b5512d10b228d73645a44, < 117871cdb8927542abd7b65ce5995bf0265a8c05
- >= 30dc5e63d6a5ad24894b5512d10b228d73645a44, < 33fb59da49c4c3f5c2ec9f9d4447a56857a02c02
Fixed in 52c13c63bb3662c108244e7447055e30bf40244e, 8a91609032d47e77bcb37bc8f6e88d89340d2709, ce8a379598bd4058081416abea4279fd05a95374, 2fbac8a56004b6ce54fbfe845d4b25da6e0b55e8, 88e429a4e9bac3d2138011c5ca06254331f2587f, e15eb536be4f646ce683d2867572b2200be877f7, 117871cdb8927542abd7b65ce5995bf0265a8c05, 33fb59da49c4c3f5c2ec9f9d4447a56857a02c02
- 3.16
Fixed in 0, 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, 6.18.54, 7.2.8, 7.3
Mitigation
Upgrade Linux to 52c13c63bb3662c108244e7447055e30bf40244e or 8a91609032d47e77bcb37bc8f6e88d89340d2709 or ce8a379598bd4058081416abea4279fd05a95374 or 2fbac8a56004b6ce54fbfe845d4b25da6e0b55e8 or 88e429a4e9bac3d2138011c5ca06254331f2587f or e15eb536be4f646ce683d2867572b2200be877f7 or 117871cdb8927542abd7b65ce5995bf0265a8c05 or 33fb59da49c4c3f5c2ec9f9d4447a56857a02c02 or later.
Upgrade Linux to 0 or 5.10.271 or 5.15.222 or 6.1.189 or 6.6.158 or 6.12.112 or 6.18.54 or 7.2.8 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.