惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google DeepMind News
Google DeepMind News
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
IT之家
IT之家
博客园 - 【当耐特】
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
B
Blog
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
云风的 BLOG
云风的 BLOG
Vercel News
Vercel News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
H
Help Net Security
J
Java Code Geeks
aimingoo的专栏
aimingoo的专栏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
Blog — PlanetScale
Blog — PlanetScale
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research

dnsmasq-discuss

[Dnsmasq-discuss] Announce: dnsmasq-2.92rc2 Re: [Dnsmasq-discuss] [PATCH] Fix arguments order for chaos subdomain check Re: [Dnsmasq-discuss] patch: block-file/allow-file - for review/feedback Re: [Dnsmasq-discuss] patch: block-file/allow-file - for review/feedback Re: [Dnsmasq-discuss] patch: block-file/allow-file - for review/feedback Re: [Dnsmasq-discuss] patch: block-file/allow-file - for review/feedback [Dnsmasq-discuss] patch: block-file/allow-file - for review/feedback Re: [Dnsmasq-discuss] server= with interface parameter changes behavior over time [Dnsmasq-discuss] NFTsets and hosts-files [Dnsmasq-discuss] [PATCH] Allow expired RRSIGs when stale caching is enabled [Dnsmasq-discuss] [PATCH] Fix local host records being overridden by upstream NXDOMAIN [Dnsmasq-discuss] [PATCH] Fix arguments order for chaos subdomain check Re: [Dnsmasq-discuss] Malformed RRSIG Can Crash dnsmasq [Dnsmasq-discuss] Malformed NSEC/NSEC3 Can Hang dnsmasq [Dnsmasq-discuss] Malformed RRSIG Can Crash dnsmasq [Dnsmasq-discuss] Security - IMPORTANT Re: [Dnsmasq-discuss] Issue with circuit-id matching on dhcp requests Re: [Dnsmasq-discuss] Issue with circuit-id matching on dhcp requests Re: [Dnsmasq-discuss] Issue with circuit-id matching on dhcp requests [Dnsmasq-discuss] Issue with circuit-id matching on dhcp requests Re: [Dnsmasq-discuss] [PATCH] bpf.c: fix memory leak in arp_enumerate() on BSD Re: [Dnsmasq-discuss] [PATCH] bpf.c: fix memory leak in arp_enumerate() on BSD Re: [Dnsmasq-discuss] dnssec problem here and now Re: [Dnsmasq-discuss] dnssec problem here and now [Dnsmasq-discuss] dnssec problem here and now Re: [Dnsmasq-discuss] server= with interface parameter changes behavior over time Re: [Dnsmasq-discuss] [PATCH] bpf.c: fix memory leak in arp_enumerate() on BSD Re: [Dnsmasq-discuss] [PATCH] bpf.c: fix memory leak in arp_enumerate() on BSD Re: [Dnsmasq-discuss] [PATCH] Preserve existing log file permissions when adding group-write bit. [Dnsmasq-discuss] server= with interface parameter changes behavior over time
Re: [Dnsmasq-discuss] Bug: Null pointer dereference in do...
Simon Kelley · 2026-03-17 · via dnsmasq-discuss
https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=c8168e888eb42870e10e6d9d96609d4c3cf2e06d

Fixes this.

A NULL pointer is only ever passed when the array size is zero, and real world qsort() implementations seem to behave in a sensible manner under those conditions, so this isn't a problem that's going to inconvenience anyone. Good to get it right anyway.


Thanks for the report.


Simon.

On 09.03.2026 13:24, fuyulai2024 wrote:
## Description

```

dnsmasq attempts to pass a null pointer (NULL) to a function in the domain-match.c file at line 82,

while the function's parameter is declared as nonnull (i.e., it must not be NULL).

As declared in the function's parameter attributes in C, the function expects to receive a non-null pointer.

However, dnsmasq passes a null pointer during the function call, which may lead to a program crash.

```

## Running Environment

```

Distributor ID: Ubuntu

Description: Ubuntu 20.04.6 LTS

Release: 20.04

Codename: focal

```

## Protocol Implementation Version

```

root@cbf1f9c04f26:~/dnsmasq/src# git log --oneline

ee09f06 (HEAD -> master, origin/master, origin/HEAD) Optimise tftp.

1e83316 (tag: v2.92test21) Formatting.

9a566c0 Tweak recently altered TFTP code.

```

## Build

```

export CC=afl-clang-fast

export CXX=afl-clang-fast++

make COPTS="-g -fsanitize=address,undefined -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address,undefined"

```

## Logs

```

root@cbf1f9c04f26:~/dnsmasq/src# ./dnsmasq -p 5353 -d -C /root/dnsmasq/ dnsmasq.conf -8 /var/log/dnsmasq/dnsmasq.log

pc_guard: [INIT] bitmap has been allocted from addr 8696316 to 8914568 [ 54563 bits - ratio: 100%]

lucky: [INIT] bitmap has been allocted from idx 1 to 54563

lucky: [INIT]inital edge cnt: 2119

Shared Memory: /dev/shm/cov_bitmap_dns

dnsmasq: started, version 2.92test21-1-gee09f06 cachesize 150

dnsmasq: compile time options: IPv6 GNU-getopt no-DBus no-UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset no-nftset auth no- DNSSEC loop-detect inotify dumpfile

domain-match.c:82:9: runtime error: null pointer passed as argument 1, which is declared to never be null

/usr/include/stdlib.h:831:30: note: nonnull attribute specified here

SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior domain- match.c:82:9 in

dnsmasq: reading /etc/resolv.conf

dnsmasq: using nameserver 192.168.65.7#53

dnsmasq: read /etc/hosts - 9 names

```



_______________________________________________
Dnsmasq-discuss mailing list
[email protected]
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


_______________________________________________
Dnsmasq-discuss mailing list
[email protected]
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss