Bug 2254982 (CVE-2023-6915) - CVE-2023-6915 kernel: Null Pointer Dereference vulnerability in ida_free in lib/idr.c
Summary: CVE-2023-6915 kernel: Null Pointer Dereference vulnerability in ida_free in l...
Keywords:
Status: NEW
Alias: CVE-2023-6915
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2258419
Blocks: 2254980
TreeView+ depends on / blocked
 
Reported: 2023-12-18 10:27 UTC by Rohit Keshri
Modified: 2024-05-22 09:52 UTC (History)
52 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A Null pointer dereference problem was found in ida_free in lib/idr.c in the Linux Kernel. This issue may allow an attacker using this library to cause a denial of service problem due to a missing check at a function return.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2024:2634 0 None None None 2024-05-01 01:22:15 UTC
Red Hat Product Errata RHBA-2024:2650 0 None None None 2024-05-02 00:15:03 UTC
Red Hat Product Errata RHBA-2024:2686 0 None None None 2024-05-02 22:50:10 UTC
Red Hat Product Errata RHSA-2024:2394 0 None None None 2024-04-30 10:14:40 UTC
Red Hat Product Errata RHSA-2024:2950 0 None None None 2024-05-22 09:15:12 UTC
Red Hat Product Errata RHSA-2024:3138 0 None None None 2024-05-22 09:52:32 UTC

Description Rohit Keshri 2023-12-18 10:27:34 UTC
A Null pointer de-reference problem was found in ida_free in lib/idr.c file when it calls the xas_load function and returns a null value, assigning NULL to the bitmap variable.

Therefore, `if (xa_is_value(bitmap))` will fail and jump to the `else` branch. However, in the else branch, the statement `if (!test_bit(bit, bitmap->bitmap))` references the member of bitmap, which triggers a null pointer dereference vulnerability.

Reference:
https://github.com/torvalds/linux/commit/af73483f4e8b6f5c68c9aa63257bdd929a9c194a

Comment 7 Marian Rehak 2024-01-15 09:05:50 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2258419]

Comment 13 errata-xmlrpc 2024-04-30 10:14:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:2394 https://access.redhat.com/errata/RHSA-2024:2394

Comment 14 errata-xmlrpc 2024-05-22 09:15:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:2950 https://access.redhat.com/errata/RHSA-2024:2950

Comment 15 errata-xmlrpc 2024-05-22 09:52:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:3138 https://access.redhat.com/errata/RHSA-2024:3138


Note You need to log in before you can comment on or make changes to this bug.