Avast detected virus from my digital camera?

I recently bought a second-hand Sony cybershot camera. It came with a charger and usb connector.

I took some photos and connected it to my laptop using the usb connector that came with it. Avast detected “trojan win32:vb-dyc” so I disconnected the usb connector. I checked Avast again, moved the trojan to quarantine, then deleted it. Scanned again with Avast, Malwarebytes, and HitmanPro just to be sure and no threats detected so far.

I don’t know if it came from the usb connector, the memory stick that came with it, or the digital camera itself and I’m too scared to find out. Where does this trojan “reside” usually? Should I just throw the camera out? Am I eternally and perpetually effed and should just throw my laptop away as well?

How can we tell anything when you have deleted evrything that could give any info, like if detection was correct or wrong

The name indicate that it was a vb script. https://en.wikipedia.org/wiki/VBScript

Out of panic, unfortunately.

USB devices can be used as an infection vector just so you know.