View Issue Details

IDProjectCategoryView StatusLast Update
0009328GNUnetutil librarypublic2024-12-09 17:03
Reporterfefe Assigned ToChristian Grothoff Due Date
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Target Version0.23.0Fixed in Version0.23.0 
Summary0009328: add_record: buffer overflow
Description  1297 ret = GNUNET_DNSPARSER_builder_add_name (dst,
  1298 dst_len
  1299 - sizeof(
  1300 struct GNUNET_TUN_DnsRecordLine),
  1301 off,
  1302 record->name);

dst_len could come in < sizeof(struct GNUNET_TUN_DnsRecordLine) and cause underflow and a buffer overflow here.

  1343 default:
  1344 if (pos + record->data.raw.data_len > dst_len)

data_len is a size_t. This addition can overflow, defeating the check.

TagsNo tags attached.

Activities

Christian Grothoff

2024-11-11 07:07

manager   ~0023687

Fix committed to master branch.

Christian Grothoff

2024-11-11 07:07

manager   ~0023688

Fixed in c273d8d03..27d340103

schanzen

2024-12-09 17:03

administrator   ~0023845

Released

Issue History

Date ModifiedUsernameFieldChange
2024-11-04 16:20fefeNew Issue
2024-11-10 09:46schanzenTarget Version => 0.22.3
2024-11-11 07:07Christian Grothoff
2024-11-11 07:07Christian GrothoffNote Added: 0023687
2024-11-11 07:07Christian GrothoffAssigned To => Christian Grothoff
2024-11-11 07:07Christian GrothoffStatusnew => resolved
2024-11-11 07:07Christian GrothoffResolutionopen => fixed
2024-11-11 07:07Christian GrothoffFixed in Version => 0.23.0
2024-11-11 07:07Christian GrothoffNote Added: 0023688
2024-11-14 08:43schanzenTarget Version0.22.3 => 0.23.0
2024-12-09 17:03schanzenNote Added: 0023845
2024-12-09 17:03schanzenStatusresolved => closed