Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Efremov <[email protected]>
  • Loading branch information
evdenis committed May 13, 2024
1 parent 04f56d2 commit 3a48ff0
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions cvehound/cve/CVE-2024-26742.cocci
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/// Files: drivers/scsi/smartpqi/smartpqi_init.c drivers/scsi/smartpqi/smartpqi.h
/// Fix: 5761eb9761d2d5fe8248a9b719efc4d8baf1f24a
/// Fixes: cf15c3e734e8d25de7b4d9170f5a69ace633a583

virtual detect

@disable_managed_interrupts@
typedef u8;
@@

struct pqi_ctrl_info {
...
* u8 disable_managed_interrupts:1;
...
};

@err depends on disable_managed_interrupts@
identifier shost, ctrl_info;
position p;
@@

pqi_map_queues(struct Scsi_Host *shost)
{
struct pqi_ctrl_info *ctrl_info = shost_to_hba(shost);
(
* blk_mq_pci_map_queues@p(&shost->tag_set.map[HCTX_TYPE_DEFAULT],
* ctrl_info->pci_dev, 0);
|
* return blk_mq_pci_map_queues@p(&shost->tag_set.map[HCTX_TYPE_DEFAULT],
* ctrl_info->pci_dev, 0);
)
}

@script:python depends on detect@
p << err.p;
@@
coccilib.report.print_report(p[0], 'ERROR: CVE-2024-26742')

0 comments on commit 3a48ff0

Please sign in to comment.