Skip to content

Code Security Report: 8 high severity findings, 8 total findings [develop] #19

@mend-for-github-com

Description

@mend-for-github-com

Code Security Report

Scan Metadata

Latest Scan: 2026-03-10 10:28pm
Total Findings: 8 | New Findings: 3 | Resolved Findings: 11
Tested Project Files: 511
Detected Programming Languages: 2 (Python*, C/C++ (Beta))

  • Check this box to manually trigger a scan

Note: GitHub may take a few seconds to process actions triggered via checkboxes.
Please wait until the change is visible before continuing.

Finding Details

SeverityVulnerability TypeCWEFileData FlowsDetected
HighOut of Buffer Bounds Write

CWE-787

bcc_perf_map.c:39

12025-01-15 05:11pm
Vulnerable Code

int bcc_perf_map_nstgid(int pid) {
char status_path[64];
FILE *status;
snprintf(status_path, sizeof(status_path), "/proc/%d/status", pid);

1 Data Flow/s detected

snprintf(status_path, sizeof(status_path), "/proc/%d/status", pid);

Secure Code Warrior Training Material

● Training

   ▪ Secure Code Warrior Out of Buffer Bounds Write Training

● Videos

   ▪ Secure Code Warrior Out of Buffer Bounds Write Video

Suppress Finding
  • ... as False Alarm
  • ... as Acceptable Risk

Note: GitHub may take a few seconds to process actions triggered via checkboxes.
Please wait until the change is visible before continuing.

 
HighOut of Buffer Bounds Write

CWE-787

trace_helpers.c:311

12025-01-15 05:11pm
Vulnerable Code

if (!gelf_getshdr(section, &header))
continue;
name = elf_strptr(e, stridx, header.sh_name);
if (name && !strcmp(name, ".text")) {
*addr = (uint64_t)header.sh_addr;

1 Data Flow/s detected

*addr = (uint64_t)header.sh_addr;

Secure Code Warrior Training Material

● Training

   ▪ Secure Code Warrior Out of Buffer Bounds Write Training

● Videos

   ▪ Secure Code Warrior Out of Buffer Bounds Write Video

Suppress Finding
  • ... as False Alarm
  • ... as Acceptable Risk

Note: GitHub may take a few seconds to process actions triggered via checkboxes.
Please wait until the change is visible before continuing.

 
HighOut of Buffer Bounds Write

CWE-787

bcc_proc.c:509

12025-01-15 05:11pm
Vulnerable Code

bcc/src/cc/bcc_proc.c

Lines 504 to 509 in df3ff48

const size_t mapnamelen = strlen(mapname);
if (mapnamelen >= PATH_MAX) {
fprintf(stderr, "Found mapped library path is too long\n");
break;
}
found = true;

1 Data Flow/s detected

found = true;

Secure Code Warrior Training Material

● Training

   ▪ Secure Code Warrior Out of Buffer Bounds Write Training

● Videos

   ▪ Secure Code Warrior Out of Buffer Bounds Write Video

Suppress Finding
  • ... as False Alarm
  • ... as Acceptable Risk

Note: GitHub may take a few seconds to process actions triggered via checkboxes.
Please wait until the change is visible before continuing.

 
HighOut of Buffer Bounds Write

CWE-787

bcc_proc.c:249

42026-02-27 09:59pm
Vulnerable Code

bcc/src/cc/bcc_proc.c

Lines 244 to 249 in df3ff48

goto done;
}
// Try perf-<PID>.map path with global root and PID, in case it is generated
// by other Process. Avoid checking mount namespace for this.
memset(&mod, 0, sizeof(mod_info));
int res = snprintf(map_path, 4096, "/tmp/perf-%d.map", pid);

4 Data Flow/s detected
View Data Flow 1

int res = snprintf(map_path, 4096, "/tmp/perf-%d.map", pid);

View Data Flow 2

int res = snprintf(map_path, 4096, "/tmp/perf-%d.map", pid);

View Data Flow 3

int res = snprintf(map_path, 4096, "/tmp/perf-%d.map", pid);

View more Data Flows

Secure Code Warrior Training Material

● Training

   ▪ Secure Code Warrior Out of Buffer Bounds Write Training

● Videos

   ▪ Secure Code Warrior Out of Buffer Bounds Write Video

Suppress Finding
  • ... as False Alarm
  • ... as Acceptable Risk

Note: GitHub may take a few seconds to process actions triggered via checkboxes.
Please wait until the change is visible before continuing.

 
HighPath/Directory Traversal

CWE-22

libbpf.c:1229

12025-01-15 05:11pm
Vulnerable Code

bcc/src/cc/libbpf.c

Lines 1224 to 1229 in df3ff48

int kfd = -1, res = -1;
char ev_alias[256];
bool is_kprobe = strncmp("kprobe", event_type, 6) == 0;
snprintf(buf, PATH_MAX, "%s/%s_events", get_tracefs_path(), event_type);
kfd = open(buf, O_WRONLY | O_APPEND, 0);

1 Data Flow/s detected

if (bytes <= 0 || bytes >= sizeof(buf)) {

Secure Code Warrior Training Material

● Training

   ▪ Secure Code Warrior Path/Directory Traversal Training

● Videos

   ▪ Secure Code Warrior Path/Directory Traversal Video

● Further Reading

   ▪ OWASP Path Traversal

   ▪ OWASP Input Validation Cheat Sheet

Suppress Finding
  • ... as False Alarm
  • ... as Acceptable Risk

Note: GitHub may take a few seconds to process actions triggered via checkboxes.
Please wait until the change is visible before continuing.

 
HighOut of Buffer Bounds Write

CWE-787

path_helpers.bpf.h:32

22026-03-10 10:30pm
Vulnerable Code

filepart_length =
bpf_probe_read_kernel_str(payload, name_len,
BPF_CORE_READ(dentry, d_name.name));
if (filepart_length < 0) {
*failed = 1;

2 Data Flow/s detected
View Data Flow 1

View Data Flow 2

Secure Code Warrior Training Material

● Training

   ▪ Secure Code Warrior Out of Buffer Bounds Write Training

● Videos

   ▪ Secure Code Warrior Out of Buffer Bounds Write Video

Suppress Finding
  • ... as False Alarm
  • ... as Acceptable Risk

Note: GitHub may take a few seconds to process actions triggered via checkboxes.
Please wait until the change is visible before continuing.

 
HighOut of Buffer Bounds Write

CWE-787

trace_helpers.c:82

12025-01-15 05:11pm
Vulnerable Code

ksym = &ksyms->syms[ksyms->syms_sz];
/* while constructing, re-use pointer as just a plain offset */
ksym->name = (void *)(unsigned long)ksyms->strs_sz;
ksym->addr = addr;
memcpy(ksyms->strs + ksyms->strs_sz, name, name_len);

1 Data Flow/s detected

memcpy(ksyms->strs + ksyms->strs_sz, name, name_len);

Secure Code Warrior Training Material

● Training

   ▪ Secure Code Warrior Out of Buffer Bounds Write Training

● Videos

   ▪ Secure Code Warrior Out of Buffer Bounds Write Video

Suppress Finding
  • ... as False Alarm
  • ... as Acceptable Risk

Note: GitHub may take a few seconds to process actions triggered via checkboxes.
Please wait until the change is visible before continuing.

 
HighOut of Buffer Bounds Write

CWE-787

syscall_helpers.c:37

12026-03-02 08:19pm
Vulnerable Code

if (*end != '\t') {
warn("bad input: %s (expected <num>\t<name>)\n", buf);
return NULL;
}
*number = x;

1 Data Flow/s detected

Secure Code Warrior Training Material

● Training

   ▪ Secure Code Warrior Out of Buffer Bounds Write Training

● Videos

   ▪ Secure Code Warrior Out of Buffer Bounds Write Video

Suppress Finding
  • ... as False Alarm
  • ... as Acceptable Risk

Note: GitHub may take a few seconds to process actions triggered via checkboxes.
Please wait until the change is visible before continuing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions