Exploit database

GH-a4473dcd9930d1ae4c0775adc06b1cfb

satheesh575555/linux-4.19.72_cve-2022-36946

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2022-36946

2 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files34

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/power_budget.h

Text · 597 bytes
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __NVBIOS_POWER_BUDGET_H__
#define __NVBIOS_POWER_BUDGET_H__

#include <nvkm/subdev/bios.h>

struct nvbios_power_budget_entry {
	u32 min_w;
	u32 avg_w;
	u32 max_w;
};

struct nvbios_power_budget {
	u32 offset;
	u8  ver;
	u8  hlen;
	u8  elen;
	u8  ecount;
	u8  cap_entry;
};

int nvbios_power_budget_header(struct nvkm_bios *,
                               struct nvbios_power_budget *);
int nvbios_power_budget_entry(struct nvkm_bios *, struct nvbios_power_budget *,
                              u8 idx, struct nvbios_power_budget_entry *);

#endif