Skip to content

nasl_pread: Failed to close file descriptor (only on certain systems) #242

@LoZio

Description

@LoZio

** Please attach large files to the report instead of pasting the contents into the report. **

Describe the bug
Installed latest container as of today. Log says it's
Greenbone Vulnerability Manager version 23.1.0 (DB revision 255)
First I upgraded the existing data using the volume I had before, then I created a brand new volume and container and started from scratch.
I create a target or use one of the dozens I have and have always used.
I start a scan using full and fast config, but it is the same with any of my configurations I always used.
The only data that the scanner gets is the ping result. None of the test in the scan config is performed.
If I look at the processes that run during the scan the usual ones do not even start.
The reports says 0 ports are available.
If I tcpdump the interface I see the ICMP traffic but nothing about tcp ports.
It seems nmap does not start at all, so no test are performed on the 0 open ports.
If I start a bash in the container and manually run nmap on the same IPs I want to scan it works with no problems (shows the open ports on targets, so network is also checked ok) and I can sniff the tcp probes.
In the logs nothing says it failed, for example it reports:

OSPD[683] 2024-01-08 16:44:56,433: INFO: (ospd.ospd) Starting scan 7e21607b-640a-4751-a6f6-15dfeff8f5d1.
OSPD[683] 2024-01-08 16:46:37,685: INFO: (ospd.ospd) 7e21607b-640a-4751-a6f6-15dfeff8f5d1: Host scan finished.
OSPD[683] 2024-01-08 16:46:37,692: INFO: (ospd.ospd) 7e21607b-640a-4751-a6f6-15dfeff8f5d1: Scan finished.

I changed any of the alive tests, always does the same thing, stops the scan after the ping phase.

To Reproduce
Steps to reproduce the behavior:
Just used docker start with :latest image.
Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

Environment (please complete the following information):

  • OS: Ubuntu 22.04
  • Memory available to OS: 18G
  • Container environment used with version:
    Client: Docker Engine - Community
    Version: 24.0.7
    API version: 1.43
    Go version: go1.20.10
    Git commit: afdd53b
    Built: Thu Oct 26 09:08:01 2023
    OS/Arch: linux/amd64
    Context: default

Server: Docker Engine - Community
Engine:
Version: 24.0.7
API version: 1.43 (minimum version 1.12)
Go version: go1.20.10
Git commit: 311b9ff
Built: Thu Oct 26 09:08:01 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.26
GitCommit: 3dd1e886e55dd695541fdcd67420c2888645a495
runc:
Version: 1.1.10
GitCommit: v1.1.10-0-g18a0cb0
docker-init:
Version: 0.19.0
GitCommit: de40ad0

logs ( commands assume the container name is 'openvas' )
Please attach the output from one of the following commands:

docker

docker logs openvas > logfile.log

Podman

podman logs openvas > logfile.log

docker-compose

docker-compose logs > logfile.log

Please "attach" the file instead of pasting the conents to the issue.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions