Bug 2301518 (CVE-2024-42151) - CVE-2024-42151 kernel: bpf: mark bpf_dummy_struct_ops.test_1 parameter as nullable
Summary: CVE-2024-42151 kernel: bpf: mark bpf_dummy_struct_ops.test_1 parameter as nul...
Keywords:
Status: NEW
Alias: CVE-2024-42151
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2302018
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-30 08:40 UTC by OSIDB Bzimport
Modified: 2024-09-03 11:38 UTC (History)
4 users (show)

Fixed In Version: kernel 6.9.9, kernel 6.10
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-07-30 08:40:05 UTC
In the Linux kernel, the following vulnerability has been resolved:

bpf: mark bpf_dummy_struct_ops.test_1 parameter as nullable

Test case dummy_st_ops/dummy_init_ret_value passes NULL as the first
parameter of the test_1() function. Mark this parameter as nullable to
make verifier aware of such possibility.
Otherwise, NULL check in the test_1() code:

      SEC("struct_ops/test_1")
      int BPF_PROG(test_1, struct bpf_dummy_ops_state *state)
      {
            if (!state)
                    return ...;

            ... access state ...
      }

Might be removed by verifier, thus triggering NULL pointer dereference
under certain conditions.

Comment 1 Mauro Matteo Cascella 2024-07-31 11:03:09 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024073033-CVE-2024-42151-b34a@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-31 11:03:31 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2302018]


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